Display Code Snippets in WordPress Without Using Any Plugin
If you have been a regular reader of this blog then you would have read my post on “displaying code snippets in WordPress posts”. I explained it using a plugin. These days I am focusing on making things happen without any plugin. So again I am invoking this topic but this time we will take different route to achieve similar goal. Most of the programming blogs authors write code in their blog posts. Sometimes browsers interpret those code blocks and as a result they it may end up displaying something weird. Let’s learn how we can display code in posts properly without using any plugin. It would be really beneficial for those who rarely write codes in their blog. It will improve page load time by avoiding any extra plugin for displaying code correctly. WordPress has <pre> and <code> tags which can be used to make your code look different from normal text. Further you can style these tags and [...]





