How To Post Code On Wordpress Site?

Discussion in 'WordPress' started by z2a, Feb 10, 2013.

  1. #1
    I am going to post an article about wordpress tutorial. So I need to post some code on the post. But when I am going to put html code it is effecting by it's own power. So I am unable to get result what I am trying to do!

    This situation how can I solve this problem by posting this html and javascript code on my blog?
    Thanks:)
     
    z2a, Feb 10, 2013 IP
  2. spyderfx

    spyderfx Greenhorn

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    You can use the <code> tag. It also shouldn't render as code if you enter it into the text view instead of html view.
     
    spyderfx, Feb 11, 2013 IP
  3. xAlexKimx

    xAlexKimx Well-Known Member

    Messages:
    547
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    158
    #3
    hmmm you are creating blog on wordpress tutorial but then you need help on wordpress. Are you sure you are pro on Wordpress?
     
    xAlexKimx, Feb 13, 2013 IP
  4. aijazsiddique

    aijazsiddique Member

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #4
    use <code> tag
    for more information check this


    http://codex.wordpress.org/Writing_Code_in_Your_Posts

    aijaz
     
    aijazsiddique, Feb 13, 2013 IP
  5. emdadblog

    emdadblog Member

    Messages:
    86
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    48
    #5
    1. Login to your wordpress blog.
    2. Go to your user profile and "Disable the visual editor when writing" this option.
    3. Then try to add code in your wordpress post.
    4. Click on save and see the preview.

    OR

    You can use this following plugin from wordpress

    http://wordpress.org/extend/plugins/wp-syntax/
     
    emdadblog, Feb 15, 2013 IP
  6. Tox

    Tox Well-Known Member

    Messages:
    706
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #6
    I currently use this plugin Crayon Syntax Highlighter give it a try is really good.
     
    Tox, Feb 19, 2013 IP