Add code to your wordpress post

Adding code snippets visually to your wordpress post is sometimes a hassle. you could write <pre><code></code></pre> tags around your code in text editor but it would be much handier to add it via the WYSIWYG editor.

Make sure you open the full WYSIWYG editor and use the Header dropdown and choose the “predefined text” option. It opens the <pre><code></code></pre> box visually and you can copy > paste your code.

So, what do you think ?