#47201 [Opn->Csd]: use an external highlight source-code engine
ID: 47201
Updated by: cweiske@php.net
Reported By: pear at laurent-laville dot org
-Status: Open
+Status: Closed
Bug Type: Doc Build problem
-PHP Version: Irrelevant
+PHP Version: 0.4.3
Assigned To: cweiske
New Comment:
Fixed in version 0.4.4. You can specify an own highlighting class with
--highlighter/-h
See a dummy geshi highlighter:
http://tmp.cweiske.de/PhD_Highlighter_Geshi.phps
One would put it into PhD/Highlighter/Geshi.php, so that it is in the
include path, and specify "-h PhD_Highlighter_Geshi" to phd on cmdline.
Previous Comments:
------------------------------------------------------------------------
[2009-01-24 09:20:07] pear at laurent-laville dot org
Hannes,
I've looked inside PhD code (themes handling), and I don't see how to
do.
Perharps you can explain me more.
What do you mean by "using my own programlisting/CDATA functions" ?
Related to my external guide, link [3], the corresponding docbook
source code in peardoc repository is
http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-quickform-advmultiselect/firstform.xml?view=log
As you can see, line 33 and +, I used only a standard way
<programlisting role="php">
<![CDATA[
<?php
...
?>
]]>
</programlisting>
------------------------------------------------------------------------
[2009-01-23 23:41:02] bjori@php.net
You mean at the theme level?
That is already possible by providing your own programlisting/CDATA
functions..
------------------------------------------------------------------------
[2009-01-23 15:08:42] pear at laurent-laville dot org
Description:
------------
This is not a BUG, just a REQUEST to use an external highlight
source-code engine !
Standard PHP highlight source code functions [1] does not provided line
numbering, and its a regret (for me). I prefer to use GeSHi [2] that
give ability to build such result [3] extends to lot of language. Which
I consider better to follow a tutorial step by step.
Laurent Laville
[1] http://www.php.net/manual/en/function.highlight-file.php
http://www.php.net/manual/en/function.highlight-string.php
[2] http://qbnz.com/highlighter/
[3]
http://www.laurent-laville.org/pear/HTML_QuickForm_advmultiselect/docs/TDG/en/ch05.html
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47201&edit=1
Thread (7 messages)