How to add Raw code to WordPress post
WordPress is the most popular blogging platform out there, Most of the blogs on the world-wide web chose WordPress to power their blog. Even though WordPress is very popular but it still has some limitations. Specially for those who teach how to code, sometimes even we have to place some codes in our blog post to help our users to make changes to the core Codes for getting the desired results. WordPress bu default will execute the raw code, this is a great feature but can be a problem for those who likes to add raw code to WordPress post.
With WordPress you have solution to add raw code to WordPress post. In this post we will teach you about how to add raw code to WordPress post.
First When you like to post a code the you should write the code normally, We are take a code for example like the one bellow
<a href=”http://www.zdidit.com” target=”_blank”>Zdidit</a>
Once you find the code then you should copy it and head to these websites Postable or HTML Encoder. These are the online tools which will change your code to the one which can be displayed in your blog post. All you have to do is paste the code in the code input box of these tools and hit the encode or make it friendly button, and the tool will make the changes.After that you have to copy the altered code and past it in the post. The changed code will look like the code shown bellow
&lt;a href=&quot;http://www.zdidit.com&quot; target=&quot;_blank&quot;&gt;Zdidit&lt;/a&gt;
Now the code will be like the one above which you have to place in your post. This code will be shown as code after it is executed. If you don’t use this method then WordPress will execute the code to a result like below.
To add a styling feature you can add <code> tag surrounding the code giving it a noticeable CSS styling.
If you like to display codes more often and don’t want to use these online tools every time then there is an option to use a plugin to display raw code to WordPress post
This the list of syntax highlighter plugins which will help you to display raw codes to your WordPress post, all the plugins will get the job done for you.Keep in mind that the plugins have different features and styling to display codes so choose the one you think is best suited for your Website.
Plugins are more suitable for easy display of raw code for a blog.
We would like to hear which way do you like, please drop us a comment in the section below.
Further read: