[python-win32] Scintilla Code Folding

Mark Hammond mhammond at skippinet.com.au
Thu Mar 15 07:46:14 CET 2007


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: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org]On Behalf Of Nawal
  Sent: Thursday, 15 March 2007 4:23 PM
  To: Mark Hammond
  Cc: Python-win32 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20070315/aecb19d4/attachment-0001.html 


More information about the Python-win32 mailing list