From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Khamis Abuelkomboz (UUNET)" To: sourcenav@sources.redhat.com Subject: Re: html parser/highlighter for SN452 Date: Fri, 02 Feb 2001 02:09:00 -0000 Message-id: <3A7A8741.6000703@knuut.de> References: <3A76D3B5.1090801@knuut.de> X-SW-Source: 2001-q1/msg00069.html Ok guys, let us shut up this nasty discussion!!!! I spent some hours and wrote a small html parser for my needs and the result was so cool that I posted it to this news group to let other people benifet of it. As I say, only some hours, I would loved to take some time and extend the parser to be more intellegint, like supporting JavaScript. Actually Tromey wanted to say "Hello, I'm still here", but he started with GPL!!! however "Hi Tromey, are you ok?" I would loved to start a discussion, how to improve source- navigator to support defining new symbol types, names containing special characters, like URL strings, so I could add URL references as symbols and cross referencing. Propably this could help redhat stocks to increase :-) Again, for every body the links are Executables: http://home.knuut.de/khamis/sn/hyper.exe http://home.knuut.de/khamis/sn/html.exe Sources: http://home.knuut.de/khamis/sn/html.l http://home.knuut.de/khamis/sn/html_high.l Khamis Khamis Abuelkomboz (UUNET) wrote: > if somebody is interested in a html browser > for sn, you can download the following files > for Windows platforms: > > http://home.knuut.de/khamis/sn/hyper.exe > http://home.knuut.de/khamis/sn/html.exe > > You need to make the following steps: > > 1. replace/copy hyper.exe html.exe into /bin > 2. edit /share/etc/sn_prop.cfg and add the following lines: > > # html > sn_add_parser html \ > -suffix {*.htm *.html *.xml} \ > -brow_cmd $sn_path(bindir)/html \ > -high_cmd $sn_path(bindir)/html > > (or download http://home.knuut.de/khamis/sn/sn_prop.cfg ) > > 3. edit /share/gui/sninit.tcl and replace line 649 > > << sninit.tcl:649: set sn_options(sys,builtin-highlighting) {c++ java > tcl chill python} > > >> sninit.tcl:649: set sn_options(sys,builtin-highlighting) {c++ java > tcl chill python html} > > have fun, > khamis