Hello!
I like syntax highlighting. Thus I wrote a script to syntax highlight
PHP examples in HTML version of manual. I don't know how strong is
DSSSL, but it was much easier for me to write a PHP script with
intention to run after processing DSSSL templates.
Does anything prevent syntax highlighting in downloadable and web
version of HTML manual?
For web version, it should be maybe better to use styles rather than
colors which are used in highlight_string(). I prepared my script for
it too (commented for now). If we decide to do so, layout.inc from
phpweb/include/ should be linked somehow to phpdoc/scripts/. (I'm not
familiar with CVS a lot but I don't doubt it's possible to have a file
from other repository in mine.)
I have already committed scripts/html_syntax.php. For Makefile, I'm
just sending a diff.
Jakub Vrana
--- Makefile.in 12 Oct 2003 12:11:36 -0000 1.139
+++ Makefile.in 10 Dec 2003 10:56:08 -0000
@@ -163,6 +163,7 @@
@test -d html || mkdir html
$(PHP) -q $(scriptdir)/rtlpatch/hackmanuallang.php $(LANGDIR)
$(JADE) $(CATALOG) -d $(HTML_STYLESHEET) -V use-output-dir -t sgml $(XMLDCL)
manual.xml
+ $(PHP) -q $(scriptdir)/html_syntax.php html/
$(PHP) -q $(scriptdir)/rtlpatch/hackmanuallang.php en
$(HACK_RTL_LANGS_PAGES)
@@ -191,6 +192,7 @@
@test -d php || mkdir php
$(PHP) -q $(scriptdir)/rtlpatch/hackmanuallang.php $(LANGDIR)
-$(JADE) $(CATALOG) -d $(PHPWEB_STYLESHEET) -V use-output-dir -t sgml
$(XMLDCL) manual.xml
+ $(PHP) -q $(scriptdir)/html_syntax.php php/
$(PHP) -q $(scriptdir)/rtlpatch/hackmanuallang.php en
$(PHP) -q $(scriptdir)/phpweb-entities.php `pwd` remove
$(HACK_RTL_LANGS_PHPWEB)