Jump to content

Display html, phh, dtd and schema code on a webpage as text


dunkov47

Recommended Posts

hi guys i need help, i have a webpage on localhost that basically is a website about php and other languages like rss, xlst

 

anyway i need to display php code, html code etc on the webpage as examples for peope to view it. does anyone know how i can do this?? i have tried <pre> tags but they dont work, im a n00b at web development programming so sorry if this is easy question. oh and the files are saved as .php were the content will be shown. i have googled but i cant find a straight answer

 

i need help for this today please as the assignment is due tomoro

 

cheers

Link to post
Share on other sites

the ascii codes? that will take way to long... if i wana display a valid document and a dtd too it will take way to long... is there an easier way?? there as to be. i tried "example code" and 'example code' how my lecturer explained it to me but it dosnt work.. i tried text area aswell  but the validator just sees it as code and gives errors

Link to post
Share on other sites

well, if you have dreamweaver you should be able to just paste the coding into the wysiwyg, and dreamweaver will automatically convert those symbols for you, that is the only way I can think of to get the job done faster, unless you can find a programme that will do it for you, but at the end of the day, that is the only way to get it on the page as far as I know without it being read as code

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.