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?
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?
You must be logged in to post a comment.
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.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.