|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47201 use an external highlight source-code engine
Submitted: 2009-01-23 15:08 UTC Modified: 2010-08-27 18:17 UTC
From: pear at laurent-laville dot org Assigned: cweiske (profile)
Status: Closed Package: Doc Build problem
PHP Version: 0.4.3 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pear at laurent-laville dot org
New email:
PHP Version: OS:


 [2009-01-23 15:08 UTC] pear at laurent-laville dot org
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



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-23 23:41 UTC]
You mean at the theme level?
That is already possible by providing your own programlisting/CDATA functions..
 [2009-01-24 09:20 UTC] pear at laurent-laville dot org

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

As you can see, line 33 and +, I used only a standard way

<programlisting role="php">


 [2009-01-25 20:02 UTC]
Fixed in version 0.4.4. You can specify an own highlighting class with --highlighter/-h

See a dummy geshi highlighter:

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.
 [2009-01-26 12:40 UTC]
documentation needed
 [2010-08-27 11:07 UTC]
Automatic comment from SVN on behalf of cweiske
Log: Write about writing own source code highlighters. This fixes bug #47201: use an external highlight source-code engine
 [2010-08-27 18:17 UTC]
-Status: To be documented +Status: Closed
 [2010-08-27 18:17 UTC]
fixed in svn.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 11:01:30 2024 UTC