On 19/02/2023 19:06, Michael Van Canneyt wrote:
On Sun, 19 Feb 2023, Martin Frb via lazarus wrote:
On 19/02/2023 12:28, Michael Van Canneyt via lazarus wrote:
Hi,
Is it possible to enable/disable code folding on a per-language
basisĀ ?
No, or only in the way you described below. Or by changing the source
in each highlighter, and make the pretend they don't fold.
That seems a strange way. Since folding can be globally switched on
and off, it should also be
possible to switch it on/off on a language basis.
Well, it just hasn't been implemented. There is no reason not to add it,
if someone wants to do it.
To entertain my lack of imagination: What is the issue, if e.g. Pascal
shows fold indicators, and you just don't use them?
In any case, there also remains the "fold selected lines" folding.
That would defeat the purpose. I use the folding to see if the HTML
tags are closed properly without having
to select them.
You don't have to select them.
If you do select text, the gutter will show an additional fold (actually
"hide") symbol, allowing you to collapse whatever text is selected.
Btw, folding may not be the best way to check for correct html nesting.
IIRC, the highlighter tries to find a matching-name closing tag, even if
that means to skip other tags.
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus