I am developing a new code editor plugin that adds an ‘edit overlay’ to an existing highlighter. I am also developing a highlighter plugin for wikitext using Prismjs. These two can be seen working together here https://unieditor.tiddlyhost.com/. The code is a pre-release, it has not been fully tested, and is for demonstration only.
Request: please support CSS @layer in the style/color mappings (or, don’t do anything to prevent it being used). I have a long-held need for exactly this solution where different types of content tiddlers (not just code tiddlers) could make great use of this.
I don’t know which plugin will work with the unieditor, maybe the editor autolist will be one.
I have Included highlighting for what I felt were the most important bits of wikitext, it would be challenging to add more rules as they may interfere, also there could be too much coloring of the wikitext and it would become visually confusing.
@buggyj perhaps to support the colors used for different elements the editors button backgrounds could corospond eg AB for back ticks, H1… for headings etc…
I have not decided what to do about colors, pismjs has it css for styling. I have used the colors/styles for html that it provides as a starting point. I guess the best approach would be to follow what happens with the tw official hightlighterjs plugin when palettes are switched?