In this post, we want to discuss about how to easily display code in WordPress. Before we get started, if you want to know about website resolutions of new year, please go through the following article: New Year Resolutions for your website.
A cool way to get WordPress to format and syntax highlight your code. Just replace the single quote to double quote. Let’s Start.
1 2 3 4 5 | [SourceCode language=”csharp”] string MyCode = “My Code”; [/sourcecode] |
Which appears in the post as:
1 2 3 4 5 | [sourcecode language=”csharp”] string MyCode = “My Code”; [/sourcecode] |
javascript Code:
1 2 3 4 5 | [SourceCode language=”javascript”] string MyCode… [/SourceCode] |
Display code in WordPress wordpress download
The article was published on July 3, 2014 @ 3:02 AM
Leave a Comment