[Feature Request] Consider switching to CodeMirror for DevTools
See original GitHub issueDescribe 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:
- Created 3 years ago
- Reactions:1
- Comments:18 (18 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 thecss
. 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
@Gusted Sure, I will tell you when I am ready with it