I have some faded memories of seeing some code folding. However the code 
highlighting features get you part of the way functionally.

My guess it beyond building a code folding viewer (which may be moderately 
easy), an extension to the CodeMirror plugin may be the quickest route to 
this feature in an edit mode. CodeMirror has a life of its own outside 
tiddlywiki, it may have a folding feature that could be incorporated. 

Tones


On Wednesday, 12 May 2021 at 22:53:37 UTC+10 [email protected] wrote:

> Folding the lines is usually based on keywords, whatever between the 
> starting keyword and ending keyword getting folded.
>
> I don't know of any other way to have code folding.
>
> So yes, things like widget tags, macro defs, html tags, comment tags.
>
> Although the philosophy of tiddlers is to keep the small, they can get 
> easily get pretty big when delving into more than wikitext (i.e. 
> programming with widgets and macros, and formatting with html elements.)
>
> On Wednesday, May 12, 2021 at 7:19:55 AM UTC-3 Mat wrote:
>
>> I would also like a native solution for code folding in the editor.
>>
>> It may be too complicated but rather than line folding, it would make 
>> more sense with "widget folding" by using the opening and closing tags of 
>> widgets, macro defs and html tags.
>>
>> Second best would be to use indentation level.
>>
>> <:-)
>>
>

-- 
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/fe7c1af1-b5b2-4120-8e47-ef3cea6edcf8n%40googlegroups.com.

Reply via email to