|
Posted by Christoph Burschka on 04/21/07 18:28
jef@w3z.co.uk wrote:
> I've tryed Text_Hilighter before, seemed to be the 1 and only PEAR
> extension that I've had trouble with, I'm not however, ruling out the
> fact it could have been the dodgey gentoo vserver i'm running that
> particular website under... I was just getting a silly error that the
> actual highlight function wasn't recognized, however the factory
> function was. tt.
>
> Good luck
> -jef
>
> Christoph Burschka wrote:
>> Schraalhans Keukenmeester wrote:
>>> Christoph Burschka wrote:
>>> There is a PEAR class Text_Highlighter which provides a framework in
>>> which XML based files per language are parsed to highlight code. Not
>>> sure if someone has already build the XML files for the languages you
>>> are looking for. May Google be your best friend!
>>>
>>> HTH
>>>
>>> Sh
>> Thanks very much, I'll see if that helps me.
>>
>> I tried using Google, but it's really tricky to search for some terms.
>> Apparently, coloring the syntax of *PHP* scripts in *Java* applications is a far
>> more common task than the other way around, so "syntax+color+php+java" isn't
>> exactly helpful. ;)
>>
>>
I've managed to get Text_Highlighter to work (and even made a new XML
description for a scripting language, which it generated a highlighting class
from). It works very well, thanks!
--cb
[Back to original message]
|