Re: [tw5] Re: How $codeblock works in Tiddlywiki?

2021-04-27 Thread Jeremy Ruston
Just to confirm that the <$codeblock code="x"> widget is essentially a synonym for <$text text="x"/>, but with some special processing to let the highlight plugin do its work. As TiddlyTweeter points out, if you want to display wikified text in a codeblock then one can simply use the HTML tags.

Re: [tw5] Re: How $codeblock works in Tiddlywiki?

2021-04-27 Thread TiddlyTweeter
Mohammad wrote: > I am working on a tiny new plugin that lets you show a code using > codeblock with line number and specified lines highlighted (stand out). > If I could use the html inside codblock then the life was much more easier! > FYI it is ONLY invoking the parser wia WikiText that creat

Re: [tw5] Re: How $codeblock works in Tiddlywiki?

2021-04-26 Thread Mohammad Rahmani
On Tue, Apr 27, 2021 at 9:46 AM TiddlyTweeter wrote: > Ciao Mohammad & Mark S. > > Just FYI I been recently very struck by how brilliant and intelligent the > parsing is in TW! > That very cleverness occasionally causes complexities as there is a lot > more going on that just using HTML wrappers.

Re: [tw5] Re: How $codeblock works in Tiddlywiki?

2021-04-26 Thread TiddlyTweeter
Ciao Mohammad & Mark S. Just FYI I been recently very struck by how brilliant and intelligent the parsing is in TW! That very cleverness occasionally causes complexities as there is a lot more going on that just using HTML wrappers. TW, natively, lacks simple markup which is actually often v

Re: [tw5] Re: How $codeblock works in Tiddlywiki?

2021-04-26 Thread Mohammad Rahmani
Hi Mark, You are right! but the issue is I cannot do anything inside code block while the original Highlight.js allow this! Anyway, the Tiddlywiki Codeblock is you said does more than I expect (using a bare ) Best wishes Mohammad On Tue, Apr 27, 2021 at 8:04 AM 'Mark S.' via TiddlyWiki < ti

[tw5] Re: How $codeblock works in Tiddlywiki?

2021-04-26 Thread 'Mark S.' via TiddlyWiki
When you inspect it, apparently the codeblock widget does much more than simply wrap things it pre/code -- it also converts angle brackets and other special characters into their HTML entities. That's a feature (I think). If you were displaying HTML code, you wouldn't want everything to render,