how to make my code to display in wordpress?

I have write some simple python code in wordpress ,when i publish it ,i can’t get proper display ,how to set my wordpress or download some plugins to do so?

enter image description here

Read More

enter image description here

Related posts

Leave a Reply

2 comments

  1. Have you considered using a plugin? This is one you might be interested in: Code Markup

    If you’re looking for syntax highlighting, go for Prism (by Lea Verou)

    Btw: For your posting, <code> instead of <pre> would be correct.

  2. You have to replace the html special characters like <, >, etc by yourself. Than you can post them.

    Using the WYSIWYG-Editor in WordPress should help.