Re: on-the-fly syntax highlighter

From: Date: Sat, 11 Jan 2003 23:35:40 +0000
Subject: Re: on-the-fly syntax highlighter
References: 1 2  Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-599@lists.php.net to get a copy of this message
echo "$key = $val\n"; In the current php syntax highlighter that is in chm file, the $key would not be blue, however in echo statements a lot of things are colored other colors. (check it out.. open your chm file and take a look) It would be very possible to make this happen but not without a noticeable drop in rendering time. The syntax highlighter works by finding a start and end point of strings, and then highlighting them. Because just about anything can come after a var, e.g. <>!@#$%^&*()-=+;'[]\:"{}|?, one search would have to take place for each of these characters. That is a lot of searches! Brendan "Gabor Hojtsy" <gabor@hojtsy.hu> wrote in message news:009101c2b892$513d8f00$55db4d3e@emergency... > > win2K SP3 IE6.0 SP1 > > > > Works fine for me. Smaller download and > > other advantages sound great. > > > > I'm all for it! > > Cool ;) > > > Some comments on the colouring; > > echo "$key = $val\n"; > > $key and $val are red, is it possible for them to be blue? > > Brendan, can variables in strings be blue? :)) > Ps. please use the latest code downloadable from > http://weblabor.hu/php-doc-chm if you implement any > new functionality or fix bugs. And please keep > indentation and naming ;) Thanks. > > Goba >

« previous php.doc.chm (#599) next »