Re: Syntax Highlighter

From: Date: Fri, 27 Dec 2002 10:47:52 +0000
Subject: Re: Syntax Highlighter
References: 1  Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-583@lists.php.net to get a copy of this message
> ok, this is a complete php source highlighter written in js. it has been > tested with numerous examples from the php chm documentation on ie6 and ie5. > I have yet > to find any bugs except for the ones listed below. most of these bugs can be > fixed but at a slight speed decrease. none of the bugs are what I would call > serious. This js highlighter actually fixes some inconsistencies and small > bugs that exist the existing php highlighter. > > http://knightsweb.net/_color_code.zip > > the php source highlighter does not run as fast as hard coded pages do(at > least in machines with less powerful cpu's. it may actually increase the > speed with fast cpu's and large examples) but never the less is not quite > as fast as I would like it to be on my P1 200. OK, I tried to check whether this works, and made the code look consistent with the other codes in the CHMs, so I can understand what's going on. I have tried to run it on some test files, but was unable to come up with any results. Can you please add some HTML files to the JS file attached, and test if everything works, and send back the files / put it on your site. It would be nice to see at least some HTML files working, so we can put that zip up on the website for users to test in different browsers, and vote on the usage of that. I think, this change is so affective that I would not like it to be decided by a small group ;) As far as I have seen, this will make color coding unavailable for IE 4, which is still used in some setups. I would like to come out with the next sample the same time, as this JS color coding test suite can be released, so we can have more visitors recognize the test suite, and try it out... Therefore I'll delay the next sample until we can come up with some test HTML files and the color coding JS code in a package. Thanks for your contribution, and have a happy holiday ;) Goba

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