Hi,
After browsing hotscripts and some googling I decided to just ask. Is there a script that formats php (and some other languages perhaps) in to html, like the \[code\]\[/code\] command here. (Is this script freeware?)
If you know please let me know!
-9902468
formatting code to html
Moderator: General Moderators
Do you mean a <xmp>-command for PHP? If so, have a look at highlight_file.
patrick-
according to an html book i have, <xmp></xmp> is deprecated and one shoud use <pre></pre> and just set a width if they have a big issue about one
9902468-
i believe php has two functions for that within itself. well.. for highlighting.
and there's htmlentities() and htmlspecialchars() that convers strings so they display as if instead of being looked at as code by html
according to an html book i have, <xmp></xmp> is deprecated and one shoud use <pre></pre> and just set a width if they have a big issue about one
9902468-
i believe php has two functions for that within itself. well.. for highlighting.
and there's htmlentities() and htmlspecialchars() that convers strings so they display as if instead of being looked at as code by html