Well I can think of some things you need to watch out for:
1. won't work for languages that use indenting for the fold structure
or if fold by indentation is on (that's an egg laying a chicken)
2. will likely get it wrong when fold comments is on (without extra logic)
3. will likely get it wrong if explicit fold is on (without extra logic)
4. won't work when fold is off (make sure it doesn't accidentally
remove all indentation from the file)
5. won't work for languages without syntax based folding
Cheers
Lex
>
> Stewart
>
> --
> You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
> To post to this group, send email to scintilla...@googlegroups.com.
> To unsubscribe from this group, send email to scintilla-inter...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
>
Notepad++ has a plugin that does exactly this, and it works fantastically for every language I've tried. I've not got a link, but if you have a look on the notepad++ wiki, there's a link on the plugin central page. I think it's called indentByFold.
Dave
> Is there
> anything that I'm missing in Scintilla that would allow me to have it
> calculate past the end of the document?
The lines end at the end of the document.
Neil