Closed gus-ghielec closed 1 year ago
@gus-ghielec I spent awhile looking into this and most code highlighter rule files are tedious to write/understand. You can look at the following links for yourself to see the complexity for CodeMirror and the Ace Editor (to name a few). Some even require you to run it through special compilers.
The answer to this is a very simple custom editor that only highlights your keywords. I got something working with good potential, just needs a bit more polish.
Selecting python is good enough for now
We use # for comments in DUE. We need to select python as a language so comments are highlighted properly.
However, if there is a way to completely customize the highlighter, we need instructions so we can tweak it for DUE.