Jump to content

XMP Tag


dcole.ath.cx
 Share

Recommended Posts

How do I display code (so it is not understood as html)so I can write <h1>like this</h1> so the code shows...but XMP was replaced with PRE but dooesn't show code... so I don't want to use XMP.also I don't want a textbox where I have scroll bars or have to assign a hight and width!

Link to comment
Share on other sites

You must use entity codes to write the special XHTML characters. Forum boards such as this have a PHP file that automatically transforms special characters into entities, but without it, you must manually type for example > every time you need to write >.I can't say anything about the scrollbars though.

Link to comment
Share on other sites

boen_robot is right. I have done that many times and if you want to display <h1>header 1</h1>, then you'll have to write this in your HTML source:

<h1>header 1</h1>

< = <> = >That's it!

Link to comment
Share on other sites

Will <code>  </code> work?

See the source code of this page, and you'll see for yourself that it won't work. Entities are THE way to go.
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...