ScintillaOrg / lexilla

A library of language lexers for use with Scintilla
https://www.scintilla.org/Lexilla.html
Other
163 stars 59 forks source link

Feature Request: Folding by indentation in plain text #218

Closed ghost closed 7 months ago

ghost commented 7 months ago

I often take very-long notes. So "folding by indentation in plain text" is a very useful feature.

After studing in long time, I found that many people also need it. Specially, notepad2 supported it. It should only change a file: LexNull.cxx https://github.com/zufuliu/notepad2/blob/main/scintilla/lexers/LexNull.cxx

Could anyone please review and update the feature?

Thank you very much.

Refer: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14465

zufuliu commented 7 months ago

Notepad++ can use https://github.com/ScintillaOrg/lexilla/blob/master/lexers/LexIndent.cxx, which is same as notepad2's LexNull.cxx except empty line handing differences see https://sourceforge.net/p/scintilla/bugs/1932/ and https://sourceforge.net/p/scintilla/feature-requests/1174/

SciTE also uses LexIndent.cxx: image

ghost commented 7 months ago

Thank you very much.

ajtruckle commented 2 months ago

So if I set my lexer style to "Indent" I will get folding functionality?

nyamatongwe commented 2 months ago

Support questions should go to the Scintilla interest mailing list at https://groups.google.com/forum/#!forum/scintilla-interest

This tracker is for issues, commonly bugs or new code.

Replying to an issue that has been closed in unlikely to be seen by many people as the standard issue list page excludes closed issues.