Good idea, Mohammad - I've added those instructions to that wiki!

On Monday, February 4, 2019 at 1:53:03 PM UTC-6, Mohammad wrote:
>
> Rob,
>  Many thanks. It works.
>
> Just a note in document and the above post add this small guide
>
>    1. To add a new brush, download one you like from 
>    https://cdnjs.com/libraries/highlight.js
>    2. Create a new tiddler with any title you like and
>       1. add a new field, name it `module-type` and set it to 
>       `highlighter`
>       2. set its type to "application/javascript"
>       3. add if(typeof hljs !== 'undefined') {} as text field
>       4. add the brush you downloaded from step 1 between above curly 
>       brackets
>       5. Save and reload
>    
>
> Cheers
> Mohammad
>
> On Monday, February 4, 2019 at 9:59:44 PM UTC+3:30, Rob Hoelz wrote:
>>
>> Hi again Mohammad,
>>
>> In preparing the sample wiki, I managed to fix a bug in my implementation 
>> - thanks for pointing that out!
>>
>> Here's an example wiki with the tweak and some example code: 
>> https://hoelz.ro/files/highlighter-example.html
>>
>> -Rob
>>
>> On Monday, February 4, 2019 at 10:03:28 AM UTC-6, Mohammad wrote:
>>>
>>> Thank you Rob,
>>>
>>> At least two people here need your solution: me and Josiah!
>>> I am sure if the setup could be simple, many would like to use it as the 
>>> original Highlight.JS plugin does not include all languages!
>>> Recently I noted that BTC has added the lovely Fortran, Matlab and some 
>>> other languages to updated plugin!
>>>
>>> I hope BTC receive this post, as he is involve in updating and 
>>> maintaining the highlight.js plugin.
>>>
>>> Cheers
>>> Mohammad
>>>
>>

-- 
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/c2cc700c-c8c7-441a-9a0e-2519e4848fa2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to