I believe it is linked with the Python lexer, along with most others.  It
does use a custom formatter, but if I recall correctly, the folding is still
magically done by the C++ code.  I'm afraid it has been many years, so you
probably need to check out the scintilla source code for a better answer.

Mark
  -----Original Message-----
  From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Nawal
  Sent: Thursday, 15 March 2007 4:23 PM
  To: Mark Hammond
  Cc: Python-win32@python.org
  Subject: Re: [python-win32] Scintilla Code Folding


  Dear Mark,

  Thank you  for the reply.

  Is Pyhone win editor is linked with SCILex_PYTHON? Is it using
  "FoldPyDoc" in LexPython.cxx

  As far I can understand from the code is  Python win is using
SCILex_CUSTOM
  so that in python level colorise code is implemented.

  But how is it enabled the fold logic which has been done in c++?

  Nawal



  Mark Hammond wrote:

Hi all,

How is the code folding implemented in Python Win IDE? It uses the
custom lexer for colorize but I can't see any code where the code
folding logic is implemented.

Is ii using the inbuilt SCILex_PYTHON for code folding?

IIRC, the folding code is in C++ in the scintilla widget itself.

Mark

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to