Jump to content

Put HTML or PHP coding, but don't execute it. Just show the coding itself.


Darkness

Recommended Posts

Hello,I'm not exactly sure how to explain my question, however, I'll try my best:How do you display coding without making it execute? Just, show what it looks like? Such as using the CODE tag in forums.

<html><b>D:</b></html>

Which makes it so it doesn't execute, it just displays the code.Think of the examples in the tutorials on W3Schools.Thanks.

Link to comment
Share on other sites

Surround your code with <code> </code>, it will escape the HTML characters and display the code in monotype font

Link to comment
Share on other sites

Weird - I thought is escaped HTML entities - I suppose you will have to replace the < and > with < and > ... :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...