Hello,
(sorry, if I ask a second time, but
I didn't get any answer, so I try it again).
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)
>>>
Would it be much cost to implement such a feature?
Say: SetLexer from position a until b,
then c to d, ...
the areas between the lexer, I would set the styles
myself, and this "restricted" areas, the lexer should
leave them alone.
Many thanks in advance!
--
Franz Steinhaeusler
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest