Re: Examples
| From: | Jirka Kosek | Date: | Tue, 16 Oct 2001 19:37:48 +0000 |
| Subject: | Re: Examples | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969338041@lists.php.net to get a copy of this message | ||
Hojtsy Gabor wrote:
> Can you please help out. How we can make this work?
> If we can figure this out, Thomas V.V. Cox would also
> be happy, as he is searching for a way to see the
>
> <programlisting role="php"> in the HTML, as now it
> is rendered as <pre class="programlisting">
To do this, add following to html-common.dsl.in.
-------------
;; class tweak
(define ($verbatim-display$ indent line-numbers?)
(let (
(content (make element gi: "PRE"
attributes: (list
(list "CLASS" (if (attribute-string (normalize "role"))
(attribute-string (normalize "role"))
(gi))))
(if (or indent line-numbers?)
($verbatim-line-by-line$ indent line-numbers?)
(process-children)))))
(if %shade-verbatim%
(make element gi: "TABLE"
attributes: ($shade-verbatim-attr$)
(make element gi: "TR"
(make element gi: "TD"
content)))
(make sequence
(para-check)
content
(para-check 'restart)))))
----------
I'm not putting it into CVS because there may be some things depending
on this change (eg. CSS stylesheet). Someone more familiar with phpdoc
should check this.
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz