Post code in wordpress

Discussion in 'WordPress' started by papa_face, Nov 17, 2007.

  1. #1
    Hello,
    How can I post the following code in a post on my blog:
    
    <?xml version=”1.0” encoding=”iso-8859-1” ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional “http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd”>
    <html xmlns=”http://www.w3.org/1999/xhtml”>
    
    Code (markup):
    It processes the code as actual HTML so it doesn't show on the page. I have tried using <code></code>. But I want it to look like code and not actual text.
     
    papa_face, Nov 17, 2007 IP
  2. microbrain

    microbrain Banned

    Messages:
    1,079
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you want the code to come on every blog post? if yes catch me I'll do edit it in your template ..
    If you want it to come in only the unique blog post then go to "write new post" and post the code in the code section by putting your code in <div></div>
     
    microbrain, Nov 17, 2007 IP
  3. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #3
    You place that in the header.php of your template.
     
    mizaks, Nov 17, 2007 IP
  4. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #4
    No, I mean I want to show people some code in a tutorial post.
     
    papa_face, Nov 17, 2007 IP
  5. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #5
    Found a way to do it, Thanks.
     
    papa_face, Nov 17, 2007 IP