Full description on custom installing Highlight.JS and adding language brushes can be found on TW-Scripts See for example this permview: Manually Add More Language Brushes to Highlight.js <https://kookma.github.io/TW-Scripts/#Manually%20Add%20More%20Language%20Brushes%20to%20Highlight.js:%5B%5BManually%20Add%20More%20Language%20Brushes%20to%20Highlight.js%5D%5D%20%5B%5BHighlight.js%20and%20Fortran%20Brush%20Issue%5D%5D%20%5B%5BAdd%20More%20Language%20Brushes%20to%20Highlight.js%20Plugin%5D%5D%20%5B%5BAdd%20Language%20Brushes%20to%20Highlight.js%20Using%20Startup%20Modules%5D%5D>
When you have a question, TW-Scripts is the first place to see https://kookma.github.io/TW-Scripts/ You can go to https://github.com/kookma/TW-Scripts and star it if you found above info useful! Best wishes Mohammad On Tue, Apr 13, 2021 at 1:17 AM Gary Zimmer <[email protected]> wrote: > I ended up installing Highlight.js from here: > https://tiddlywiki.com/plugins/tiddlywiki/highlight/ > what I didn't realize for a while was that I needed to define which > language I'm using in my code blocks by typing the abbreviation for it next > to the code block symbols, in my case: ```cs > > It works, but I was expecting a little bit more color... Oh well, better > than the standard text it was before! > > On Saturday, April 10, 2021 at 12:02:21 AM UTC-4 Gary Zimmer wrote: > >> If it matters, the language I primarily write in is C# so I'd like that >> to work, not JS or CSS >> >> On Saturday, April 10, 2021 at 12:01:21 AM UTC-4 Gary Zimmer wrote: >> >>> I've managed to get CodeMirror working fine on my TW one page install >>> hosted on github, but I'd like to get colorizing of my code work as well so >>> it's not so painful to look at a large snippet of code. I can't seem to get >>> any success out of just drag and dropping the JS files for the >>> runmode.js and the colorize.jp from here >>> <https://codemirror.net/doc/manual.html> and TW doesn't seem to >>> recognize the JS files since when I import them the title is just >>> "untitled". Has anyone gotten colorized code snippets to work with >>> CodeMirror and TW? >>> Thanks >>> >> -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/64e54c1e-4473-4bf0-a0a8-f99691cc5583n%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/64e54c1e-4473-4bf0-a0a8-f99691cc5583n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMCMJqg3z%3DXkJhKeijUYzjgfLrBpU89%3D9RU8G5fmHvx_wg%40mail.gmail.com.

