question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Consider switching to CodeMirror for DevTools

See original GitHub issue

Describe the solution you’d like A clear and concise description of what you want to happen.

Currently the stylesheet editor and the DarkReader DevTools use textarea to render themselves. It does not have any syntax highlighting, current line highlighting, line numbers, etc. I think that CodeMirror could provide more features for the editors.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
Yash-Singh1commented, Nov 16, 2020

I was just pointing out that we don’t need to be concerned with syntax highlighting the css. We will have to code a custom mode that does everything, but the css. I will look into making a custom mode for CodeMirror that does something like this.

UPDATE:

Look at this link: https://codemirror.net/demo/simplemode.html Looks like making a mode is regex-based. Also, we will have to build a mixed mode. Here is a commit someone made that does something similar to what we are doing: https://github.com/plocket/docassemble/commit/e993e88661a2da8f6390f7c6347998bb99c12450

0reactions
Yash-Singh1commented, Nov 19, 2020

@Gusted Sure, I will tell you when I am ready with it

Read more comments on GitHub >

github_iconTop Results From Across the Web

CodeMirror 5 User Manual
CodeMirror is a code-editor component that can be embedded in Web pages. The core library provides only the editor component, no accompanying buttons,...
Read more >
167284 - source panel: keyboard shortcut for comment toggle
Issue 167284: Feature request - source panel: keyboard shortcut for comment ... I think it's worth considering changing the pause execution shortcut to...
Read more >
My Workflow: Never having to leave DevTools - Remy Sharp
But in a recent release to DevTools, a feature that previous ... them (though I believe you should be able to revert individual...
Read more >
Firefox Developer Tools: Episode 27 - Edit as HTML ...
Codemirror is a popular HTML5-based code editor component used on web sites. It is customizable and theme-able. The Firefox Devtools now use ...
Read more >
Issue 167287 in chromium: Feature request: word wrap for ...
Labels: Feature-DevTools Pri-2 Via-Wizard Type-Bug OS-Mac New issue 167287 by remysh...@gmail.com: Feature request: word wrap for sources panel
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found