syntax highlighting

Jason Andrews jra@simpod.com
Sat Oct 14 18:13:00 GMT 2000


Ben Elliston wrote:

>    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
>
> The -high_cmd is no longer applicable.  In fact, it needs to be
> removed.  Once upon a time, syntax highlighting was done by an external
> program.
>
>    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.
>
> Can you post a diff for your changes to highlight.c?
>
> Ben

Thanks, but I got it. The key was to edit sninit.tcl and add my language to
the list of those with built-in-highlighting.  Now the functions in
highlight.c
are called as you described.



More information about the Sourcenav mailing list