You can find the DSSSL code to make this work in peardoc /
php-gtk-doc CVS. Please try to integrate that to our DSSSL sheets.
It would be a perfect christmas gift :))

It seems that peardoc uses similar solution as I proposed so it's unusable for online version of PHP manual.

There are some traces of this funtionality in the DSSSL sheets. The idea is to wrap the text with some PHP code where the programlistings are handled. The following define is the base for that (from peardoc CVS)...


(define (php-code code)
  (make processing-instruction
    data: (string-append "php " code "?")))

From the rest it seems that a method similar to your suggestion is used, and the php-code define is not utilized... This does not mean however that we should go on that way. PEAR has no mirror sites, but PHP.net has more then 110, and the amount of traffic increase the colored examples would put on the server would be huge... While the mirror sites have CPU power to highlight the examples (the user notes are also highlighted on the mirror sites on the fly).

Goba

Reply via email to