Hi Mario,

Thanks for the help.

I have been able to get it working in TW5!
I have created a new project here: 
https://github.com/adithya-badidey/TW5-codemirror-plus to start working on 
it.

JD and others, can you try it out and give feedback?
This is how it looks

[image: Screen Shot 2020-08-19 at 7.55.10 PM.png]

On Monday, August 17, 2020 at 12:52:35 AM UTC+5:30 PMario wrote:

> On Sunday, August 16, 2020 at 9:02:37 PM UTC+2, Adithya B wrote:
>>
>> [...] change the format to x-tiddlywiki but there seem to be a big bug 
>> (where the formatting breaks when urls have //)
>
>
> Yea, that's a bug. ... The "workaround fix is" put a // at the end of the 
> line, which will end "italic" formatting.
>  
>
>>
>> I would happily give some time to work on it if you can help me 
>> understand this code:  
>> https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/codemirror-mode-x-tiddlywiki
>> Its obfuscated and minimized :/
>>
>
> You'd need to work with the source code. 
> https://github.com/codemirror/CodeMirror/blob/master/mode/tiddlywiki/tiddlywiki.js
> You'll need to understand the internal working of cm-mode code. .. see: 
> https://codemirror.net/doc/manual.html#modeapi
>  
>
>>
>> I would love it it if this plugin
>> 1) Works with TW5 Wikitext by default (without needing the content-type 
>> to be changed)
>>
>
> That should be a relatively easy fix.
>  
>
>> 2) highlights the headlines (!)
>> 3) colours everything within [[ ]], {{}} and << >>
>>
>
> 4) Makes hyperlinks work
>>
>
> I don't  understand this one. May be // as mentioned above. 
>
> -mario
>
>
>

-- 
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/8b6e33c8-2323-4f6c-a5b8-ef4588f6dc38n%40googlegroups.com.

Reply via email to