In November 2001 Wilhelm Pflueger contributed a feature that would
draw boxes around code structures. A little like Nassi-Shneiderman
diagrams:
http://www.scintilla.org/FoldBoxes.gif

   While this would be a good feature if it worked well, the current
implementation is not very good and has not seen much interest. The
C++ folder that implemented the detection side of fold boxes was
removed in April 2003 when the fold.at.else feature was integrated.

   I plan to remove all remaining code that draws fold boxes and move
the following symbols to the deprecated category:

SC_FOLDLEVELBOXHEADERFLAG
SC_FOLDLEVELBOXFOOTERFLAG
SC_FOLDLEVELCONTRACTED
SC_FOLDLEVELUNINDENT

SC_FOLDFLAG_BOX

   One benefit to this change is that it definitively frees the
SC_FOLDLEVEL* bits mentioned which will allow the high word of the
indentation level to be used generically for the starting level of the
following line as is now done specifically by some folders such as for
C++. This is part of a simplification of folding, making Scintilla
perform more of the work and simplifying each language's folder.

   It may be possible to remove the manual setting of the
SC_FOLDLEVELHEADERFLAG, leaving this up to the generic SetLevel code
whenever it detects the relationship between the level of two lines
has changed.

   Neil

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to