Sorry the message was not finished when an accident key stroke made it sent.
Now I'll try to finish my message.
-------------------------------------------------
Hi,
I'm trying to implement a new version of the TeX lexer in which I would like to
realize two new ideas:
i) folding TeX headers in two modes (Cascaded and Plain);
ii) add user defined header types.
In point i), mode Cascaded means folding TeX headers according to its
syntactical depth, e.g. when \chapter is folded all \sections within it will
also collapse, and mode Plain means treating all headers as being equal, e.g.
folding \chapter only to the beginning \section next to it, etc. This is quite
easy to implement but the problem is how to take control over which mode is to
be used. I tried to define a property fold.header.cascaded and use
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?
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];
WordList &keywords3 = *keywordlists[2];
WordList &keywords4 = *keywordlists[3];
WordList &keywords5 = *keywordlists[4];
WordList &keywords6 = *keywordlists[5];
WordList &keywords7 = *keywordlists[6];
WordList &keywords8 = *keywordlists[7];
WordList &keywords9 = *keywordlists[8];
to define user headers of different depth. But this would interfere with
existing keywords2.$(file.patterns.tex) through keywords8.$(file.patterns.tex).
Therefore I wish to use keywords list starting from
keywords9.$(file.patterns.latex) to keywords17.$(file.patterns.latex). Though
this leads to no compiling errors it causes SciTE to crash while starting.
Clearly SciTE (or Scintilla?) does not support keywordn for n>9. How can this
limitation be overcome?
Thanks.
[EMAIL PROTECTED]
2007-06-25
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest