|
Posted by Christoph Burschka on 04/26/07 06:50
Grigory Temchenko schrieb:
> On Apr 3, 2:21 am, Christoph Burschka <christoph.bursc...@rwth-
> aachen.de> wrote:
>
>>Are there any free PHP libraries/utility functions that can color the syntax of
>>various programming languages (eg. Java and C++)?
>
>
> You can use http://softwaremaniacs.org/soft/highlight/en/
> That's very easy to use library and it don't need PHP. You just drop
> few lines of JavaScript on your page and it's work.
>
But between a Javascript and a PHP solution, I'd say server-side is the
more desirable. After all, my CMS (Drupal) can cache the filter output
of the PHP function, and therefore has minimal resource use, compared to
forcing every user to run the parser in their browser.
Not to speak of browser compatibility and accessibility, of course...
--
cb
Navigation:
[Reply to this message]
|