I sometimes put scripts, as plain text, on the web, for easy
downloading.
However, as plain text they are a bit hard to read. I would like to
color code the source (in the browser). I was wondering if there are
any PHP tools that allow me to do that. The idea being that PHP will
parse the text/script file and output the source code as color coded
webpage. (the extension is always txt, so I would have to tell PHP
what language to expect)
I did some googling and found surprisingly little.
Do any of you know whether such a tool exists? If so, could you give
me some pointers as to where to get me started? I am primarily looking
for a tool that will allow me to color code vbscript files.
tia
arno
<snip>
> tia
> arno
Try GeSHi.
<http://qbnz.com/highlighter/>
--
Curtis
$email = str_replace('sig.invalid', 'gmail.com', $from);
arno
On Wed, 25 Feb 2009 00:41:03 GMT, Curtis Dyer <dye...@sig.invalid>
wrote:
>Try GeSHi.
>
><http://qbnz.com/highlighter/>
Or just RTFM:
http://uk2.php.net/manual/en/function.highlight-file.php
C.
Whoops - I didn't read the last line of the OP
C.
The OP mentioned wanting to highlight VBScript, which may or may not
be done satisfactorily with PHP's built-in highlighting functions.
Sorry, I snipped that portion of the OP's post.