Log in

View Full Version : Non-vB HTML question, displaying code


Club3G
10-31-2005, 07:47 PM
I'm looking to display a bit of perl (okay, several bits) within the body of an HTML file. I need to display it as unparsed code, and would like to be able to format the font and add anchors to it.

I can't seem to find a tag that will accomplish this. I'm writing a script of my own that works somewhat like doxygen - goes through a file, pulls out certain things, comments, etc, and at the end of the outputted file, I'd like to have a section (or a separate file) that is just a list of the actual code itself.

Other than reading it in line by line and writing a loop to do something like ' if line contains < replace with &lt', is there a tag/easier way that I can do this?

Hope this is the right section for this. Thanks guys. :)