syntax highlighting
Jason Andrews
jra@simpod.com
Fri Oct 13 15:31:00 GMT 2000
Can you explain the relationship between what is in the
share/etc/sn_prop.cfg file
specifically the -high_cmd argument for adding parsers and the info you
gave me below?
I have entered my new parser in the -brow_cmd and also the -high_cmd
I added hooks to the highlight.c stuff you mentioned below but this
code is never
called for my parser's language. I guess I don't see the connection
between my
flex based parser and these other flex files for syntax highlighting.
Maybe I need
something else for the -high_cmd field.
Any help is much appreciated.
Jason
--------------
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