syntax highlighting
Ben Elliston
bje@redhat.com
Wed Oct 11 11:23:00 GMT 2000
Hi,
I have integrated a new parser with sorucenav and I am looking for
documentation on syntax highlighting.
The syntax highlighters have specific hooks into the `hyper'
interpreter. For an example, go to the `hyper' source directory and grep
for `ch_highlight' in highlight.c.
The idea is that an init function is called once to initialise things and
then an entry point is called periodically whenever S-N's editor wants a
memory buffer (usually the file currently loaded into the editor) to be
scanned for highlighting information.
Such scanners are usually written using Flex.
Any advice on where to find it or which parser to look at as an
example is appreciated.
Take a look at hyper/*.l.
Yes, it's not as clean as it ought to be. Highlighters should be loaded
into the interpreter dynamically.
Cheers, Ben
More information about the Sourcenav
mailing list