On 3/5/07, SPE Stani's Python Editor <[EMAIL PROTECTED]> wrote:
On 3/5/07, Rob McMullen <[EMAIL PROTECTED]> wrote:
> I wonder if there's a way to determine from the python side which
> languages support folding and which don't?  HTML, for example, doesn't
> produce any folding -- I had thought it might because of the nesting
> of tags.
Me too. Josiah, any idea?
I found this list on http://www.yellowbrain.com/stc/lexing.html:
Value   Folding?        properties
wxSTC_LEX_ADA   no      no
wxSTC_LEX_ASP   no      see wxSTC_LEX_HTML
wxSTC_LEX_AUTOMATIC     N.A.    N.A.
wxSTC_LEX_AVE   no?     "fold" (not implemented?)
wxSTC_LEX_BAAN  yes     "styling.within.preprocessor"
"fold.comment"
"fold.compact"
wxSTC_LEX_BATCH no      no
wxSTC_LEX_BULLANT       no?     "fold" (not implemented?)
wxSTC_LEX_CONF  no      no (Apache config files)
wxSTC_LEX_CONTAINER     N.A.    N.A.
wxSTC_LEX_CPP   yes     "styling.within.preprocessor"
"fold.comment"
"fold.preprocessor"
"fold.compact"
wxSTC_LEX_DIFF  no      no
wxSTC_LEX_EIFFEL        yes     no
wxSTC_LEX_EIFFELKW      yes     no
wxSTC_LEX_ERRORLIST     no      no
wxSTC_LEX_HTML  no      "asp.default.language" (javascript)
"fold.html"
"fold"
"fold.compact"
wxSTC_LEX_LATEX no      no
wxSTC_LEX_LISP  yes     no
wxSTC_LEX_LUA   yes     "fold.compact"
wxSTC_LEX_MAKEFILE      no      no
wxSTC_LEX_MATLAB        yes     no
wxSTC_LEX_NNCRONTAB     no      no
wxSTC_LEX_NULL  N.A.    Null language just handles the protocol but does
nothing. Use for plain text.
wxSTC_LEX_PASCAL        yes     "fold.comment"
"fold.preprocessor"
"fold.compact"
wxSTC_LEX_PERL  yes     no
wxSTC_LEX_PHP   no      see wxSTC_LEX_HTML
wxSTC_LEX_PROPERTIES    no      no
wxSTC_LEX_PYTHON        yes     "fold.comment.python"
"fold.quotes.python"
"tab.timmy.whinge.level"
wxSTC_LEX_RUBY  yes     "tab.timmy.whinge.level"
wxSTC_LEX_SCRIPTOL      Unknown Although defined, support doesn't exist.
wxSTC_LEX_SQL   yes     "fold"
wxSTC_LEX_TCL   yes     see wxSTC_LEX_CPP
wxSTC_LEX_VB    yes     no
wxSTC_LEX_VBSCRIPT      yes     no
wxSTC_LEX_XCODE Unknown Although defined, support doesn't exist. It's
for for DevelopMentor's GenX product.
wxSTC_LEX_XML   no      see wxSTC_LEX_HTML

But still a dynamic way would be better. I posted a question on the
scintilla mailing list.


Stani
--
http://pythonide.stani.be

Reply via email to