Hello,

Styled Text Control in wxPython:
is there any possibility to set a lexer for only a
part of text.

In my case for the Python Shell PyCrust:

I want to have similar colours as in idle:
example:

>>>                         ....(prompt) dark red

>>> for i in 'abc':
        print ord (i)             .... this is a python input => use python 
lexer
                                 or simulate it (keywords a colour (orange for 
example)
                                 string 'abc' green for example

        
97                          ... this is the output (I want to have it blue)
98
99

>>> rzt

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in -toplevel-
    rzt
NameError: name 'rzt' is not defined  ... this is a traceback (should be red)
>>> 


If not, what is the best way to get colored 
areas of text; not fiddling to much with 
SetStyle and companions.

Many thanks in advance!
--
Franz Steinhaeusler

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to