I had to do this for matlab. It isn't difficult but I remember there being 
some annoying syntax thing that came up somewhere. I didn't run into it 
while testing so maybe it won't be a problem.

Go to the download page here (https://highlightjs.org/download/) select the 
languages you want included in the plugin.
Click the download button.
In the downloaded zip file open up the file highlight.pack.js
In the tiddler $:/plugins/tiddlywiki/highlight/highlight.js
You want to replace everything between the first line 
var hljs = require("$:/plugins/tiddlywiki/highlight/highlight.js");
and the last line 
exports.hljs = hljs;
with the contents of highlight.pack.js

Then same the tiddler and reload your wiki. I didn't get an error doing it 
just now but I haven't tested it much.

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4b11e240-d605-4ff9-a4a5-b9232a713fca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to