Jump to content

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


Darkness
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...