How To Display Code In Wordpress Site
First you need to install and activate the Synatx Highlighter Evolved plugin. After activation, you need to go Settings » Syntax Highlighter to configure the plugin settings.
Each option has detailed description to explain what it does. Once you are done, simply click on the save changes button to store your settings.Syntax Highlighter evolved plugin uses simple shortcodes to display code. For each language you need wrap your code in the shortcode for that language.
For PHP you will wrap your code like this:
[php]For CSS you will wrap your code like this:
font-family:”Open Sans”, Times, sans-serif;
Syntax Highlighter will automatically highlight the code. It will also add line numbers and handle tab indent properly. Users will be able to easily copy and paste code snippets from your WordPress website.
How to Display Code in WordPress Without Using Plugin
you can add code by encoding the code into HTML entities.
We hope this article helped you find the best Display code syntax highlighter plugin for WordPress.If you liked this article you can Join us on Facebook,Twitter,Google Plus.