[wxPython] wxSTC_LEX_DIFF?

Hi,

I noticed there is a wxSTC_LEX_DIFF mode for SciLexer.

Is this usable? And How to use it? What does it expect?

Anyone knows of a Python diff module? Something that would work like
standard Unix diff?

Thanks

I noticed there is a wxSTC_LEX_DIFF mode for SciLexer.

Is this usable? And How to use it? What does it expect?

Neil can probably give more details, or you may be able to find some info on
the scintilla web site, but I expect that it's just like any of the other
lexers. You just need to define some styles and load the text into the
buffer and it will then colourize it.

Anyone knows of a Python diff module? Something that would work like
standard Unix diff?

How about os.popen("diff file1 file2", "r").read()?? <wink>

ยทยทยท

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

Robin Dunn:

> I noticed there is a wxSTC_LEX_DIFF mode for SciLexer.
>
> Is this usable? And How to use it? What does it expect?

Neil can probably give more details, or you may be able to find some info

on

the scintilla web site, but I expect that it's just like any of the other
lexers. You just need to define some styles and load the text into the
buffer and it will then colourize it.

   That is correct, just stick the output of diff in a buffer and set the
styles up. The lexer is quite simple, just looking at the line start
characters. With Scintilla features, it is often a good idea to investigate
them in SciTE and then take the knowledge over to your own application.

   Neil