stc colouring for mail quote

Hello NG,

is it possible (I want to use the styled text control)
to have a lexer (if not already exist one,
to write an own, when this is possible in wxPython)
for displaying of Usenet and mail messages.

If not:
Is the best way to use the EVT_STC_STYLENEEDED and search with
(regular expressions) to determine the position
and the colour of the text.

If it is not clear, what I mean:

This is a screenshot taken from gmane newsserver,
where this (our) list is mirrored.

http://mitglied.lycos.de/drpython/test/colouring-mail-quote.png

···

--
Franz Steinhaeusler

Hello NG,

is it possible (I want to use the styled text control)
to have a lexer (if not already exist one,
to write an own, when this is possible in wxPython)
for displaying of Usenet and mail messages.

Standard lexers for Scintilla/StyledTextCtrl are written in C++.

If not:
Is the best way to use the EVT_STC_STYLENEEDED and search with
(regular expressions) to determine the position
and the colour of the text.

If you want to get the EVT_STC_STYLENEEDED event, you must use the
STC_LEX_CONTAINER lexer. And at least for that particular application
(coloring based on quoting level), writing your own 'lexer' based on
EVT_STC_STYLENEEDED events isn't bad.

- Josiah

···

Franz Steinhaeusler <franz.steinhaeusler@gmx.at> wrote:

Josiah Carlson wrote:

Hello NG,

is it possible (I want to use the styled text control)
to have a lexer (if not already exist one,
to write an own, when this is possible in wxPython)
for displaying of Usenet and mail messages.

Standard lexers for Scintilla/StyledTextCtrl are written in C++.

If not:
Is the best way to use the EVT_STC_STYLENEEDED and search with
(regular expressions) to determine the position
and the colour of the text.

If you want to get the EVT_STC_STYLENEEDED event, you must use the
STC_LEX_CONTAINER lexer. And at least for that particular application
(coloring based on quoting level), writing your own 'lexer' based on
EVT_STC_STYLENEEDED events isn't bad.

- Josiah

Thank you for your explanation.

···

Franz Steinhaeusler <franz.steinhaeusler@gmx.at> wrote:

--
Franz Steinhaeusler