tags:

views:

57

answers:

4

The text in my source code is formatted properly, but when it shows up in the browser all the formatting disappears. Is there a tag I could add to the paragraph tag to make the text properly format?

+2  A: 

The <pre> tag sounds like what you need.

Christian Hayter
+3  A: 

you could use the <pre> and </pre> tags to preserve formatting instead of the <p> tag

Joey C.
+2  A: 
<div style="white-space:pre">
    hereIsSomeSourceCode();
    if (blah == 3)
       doSomething();
</div>
desau
A: 

pre worked thanks a ton

Use the checkbox to accept an answer... Pick your favorite if multiple answer it.
bradlis7