display the code of a page in a html page?

Shreyo G

New member
i'm programming a web page that will be something like a code generator. after completion, i want to display the code generated by the program to a html page or in a multiline textbox.
there is a possibility to do this, which i came across years back, now i lost that source.
how can i do this?
 
If you use PHP, ASP or ASP.Net, you could save the generated code into a server-side private file, then read your code by language tools and put it in a string. Then, set the value property of your multiline textbox to that string. You could also do it in the client-side by a javascript function which which operates in onload event of body tag.
 
If you use PHP, ASP or ASP.Net, you could save the generated code into a server-side private file, then read your code by language tools and put it in a string. Then, set the value property of your multiline textbox to that string. You could also do it in the client-side by a javascript function which which operates in onload event of body tag.
 
Back
Top