[wxPython-users] Styling in an STC editor

Robin Dunn robin at alldunn.com
Mon Dec 11 22:37:05 PST 2006


Josiah Carlson wrote:
> 
> You should, however, be careful of line endings.  I can't remember off
> the top of my head everything, but I seem to remember that there was
> something quite annoying with the way line endings were handled in the
> stc.  Always 2 characters?  Always 1 character?  2 characters on Windows,
> 1 on Linux?  Do some investigation.

IIRC the default is whatever the line ending of the file is, but it can 
be changed on the fly via STC methods, so it is possible to have 
existing lines in the file with one line-ending style, and new lines 
inserted by the user have another.  While you are working on how to deal 
with the line-endings and STC options, it is useful to turn on the view 
line endings option so you can actually see what is in the document.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list