instanton:

foldCascaded = styler.GetPropertyInt("fold.header.cascaded");

in the lexer. When foldCascaded=1 the Cascaded mode will be turned on,
otherwise the Plain mode will be turned on. But it seems that
styler.GetPropertyInt("fold.header.cascaded") does not read the actual value
of fold.header.cascaded defined in the properties file. What can be going
wrong here?

  Properties used by a particular lexer/folder <lang> should begin
with lexer.<lang> or fold.<lang> so this should be fold.tex.cascaded.
Running the scintilla/src/LexGen.py script will then update the list
of properties sent from SciTE to Scintilla.

In point ii) above, I have also succeeded the implementation of user defined
header types, making use of WordList *keywordlists[]. However, I wish that
the user defined headers can also work in the Cascaded mode, i.e. these
headers should also be able to be assigned different depths. Therefore, I
use

  WordList &keywords  = *keywordlists[0];
  WordList &keywords2 = *keywordlists[1];

  Keywords are not designed to carry arbitrary extra information.
Create a new setting, say fold.tex.levels that contains the level
information for particular header types. Something like
fold.tex.levels=chapter:1 section:2 para:3

  BTW, I never understood the Dutch, English, German, Czech, Italian,
and Romanian lists: that is only a subset of the world's languages so
it would be better with a way to set a couple of sets of keywords and
for the users to worry about which languages these map to.

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

Reply via email to