Replies: 6 comments 5 replies
-
Probably they didn't include the highlight.js plugin, because there are not many non-WikiText code examples in the docs and the current highlight.js library is sized 111 kb. If i am not wrong, there is currently no highlighter for WikiText, which would be the main use case. BTW, I fixed some crude display errors in my local TiddlyWiki by
But I didn't test it on the current Wiki, with its p-soup :-p |
Beta Was this translation helpful? Give feedback.
-
Great work! I am not very familiar with JS and do not understand your modification, but I appreciate you efforts! Please have a look at #4502 I am sure @Jermolene welcome to update highlight.js! For me it is important as I use Fortran syntax highlights and the current TW version of Hghlight.js has bug! Please also have a look at #5961 |
Beta Was this translation helpful? Give feedback.
-
I thought, there has been a PR somewhere. ... But I'm not sure atm |
Beta Was this translation helpful? Give feedback.
-
I just tested with a download containing all languages. The file size of highlight.pack.js is then 1MB. Aside of that, the highlighting works with my two changes in the highlightblock.js, mentioned above (these changes adapt to the breaking changes in the highlight.js project). Tested on tiddlywiki.com. |
Beta Was this translation helpful? Give feedback.
-
There is a list of languages in the plugin readme, with those we usually include |
Beta Was this translation helpful? Give feedback.
-
Thanks @kookma
I think it goes back to the very early days when we didn't have a plugin library, and so I would have to make sure that there was an edition containing each plugin so that users could drag and drop them. At that point, when I'd added a new plugin I'd generally leave it on tiddlywiki.com for a while for people to be able to test it. It's probably time to standardise the plugins in /index.html and /prerelease.html (the latter is preloaded with many plugins). |
Beta Was this translation helpful? Give feedback.
-
The official https://tiddlywiki.com/ has few plugins as below! This is very important to ship it with minimum required plugins, but my question is: why Evernote is included? and why not highlight.js is include? Is there any reason?
By the way I appreciate this cleanup! Thank you Jeremy!
Beta Was this translation helpful? Give feedback.
All reactions