From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Andrews To: Ben Elliston , "sourcenav@sourceware.cygnus.com" Subject: Re: syntax highlighting Date: Sat, 14 Oct 2000 18:13:00 -0000 Message-id: <39E85C35.7D953470@simpod.com> References: X-SW-Source: 2000-q4/msg00077.html 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.