ISerialized .Net, C#, Scrum and agile software development

15Dec/093

Adding C# and ASP.Net code to WordPress

In the case of WordPress, adding C#, ASP.Net and similar code is very simple. Just use the sourcode tag in the following way (discard the underscores):

[_sourcecode language="csharp"]
string s = “Hello World”;
System.Console.WriteLine(s);
[_/sourcecode]

And it will turn up like this:

string s = "Hello World";
System.Console.WriteLine(s);

Note: This functionality require the following plugin: http://wordpress.org/extend/plugins/syntaxhighlighter/ 

Posted by Pål Eie

Comments (3) Trackbacks (0)
  1. Thanks paul. this really helped me a loot

  2. Very well written article, thx for sharing.

  3. Have been looking at doing SEO and improving the web design on my website for a while, so this website has been very helpful. Clear read as well, so thanks!


Leave a comment

No trackbacks yet.