Forum Moderators: coopster

Message Too Old, No Replies

Easy line numbering?

         

zyph

2:08 pm on Sep 21, 2004 (gmt 0)

10+ Year Member



Hi, I like to write small articles covering for example php/xhtml and css.
Therefor I use small examples many times.

I'm looking for an easy way to fit those examples with line numbering (and maybe even syntax highlight, wuhu!)

I have no interest in putting my examples in a database, cause they are all very small examples.

Timotheos

3:13 pm on Sep 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check out the user notes on the PHP manual for highlight_string [php.net]. They have a lot of good examples for both line numbering and highlighting syntax.

hafnius

3:19 pm on Sep 21, 2004 (gmt 0)

10+ Year Member



Hi zyph

Check out the documentation for the function highlight_string() [dk.php.net] on php.net

Lots of good examples for doing what your want.
/Hafnius

[Late again....]