{"id":919,"date":"2012-05-17T11:33:14","date_gmt":"2012-05-17T09:33:14","guid":{"rendered":"http:\/\/hen.co.za\/blog\/?p=919"},"modified":"2012-05-17T11:33:56","modified_gmt":"2012-05-17T09:33:56","slug":"formatting-c-code-in-wordpress-post","status":"publish","type":"post","link":"https:\/\/hen.co.za\/blog\/2012\/05\/formatting-c-code-in-wordpress-post\/","title":{"rendered":"Formatting C# code in WordPress post"},"content":{"rendered":"<p>If you are like me working with C# a lot and trying to post articles on your WordPress site you might like this: <a href=\"http:\/\/alexgorbatchev.com\/wiki\/SyntaxHighlighter\" target=\"_blank\">Alex Gorbatchev\u2019s SyntaxHighlighter<\/a><\/p>\n<p><strong>Example source code listing<\/strong><\/p>\n<p>[ sourcecode language=&#8221;csharp&#8221; ]<br \/>\nvoid Stuff<br \/>\n{<\/p>\n<p style=\"padding-left: 30px;\">int moreStuff = 0;<\/p>\n<p>}<br \/>\n[ \/sourcecode ]<\/p>\n<p>Would look like this:<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nvoid Stuff\r\n{\r\n    int moreStuff = 0;\r\n}\r\n<\/pre>\n<p>I haven&#8217;t tested it with all possible language features but at least it is a start!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are like me working with C# a lot and trying to post articles on your WordPress site you might like this: Alex Gorbatchev\u2019s SyntaxHighlighter Example source code listing [ sourcecode language=&#8221;csharp&#8221; ] void Stuff { int moreStuff = &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/hen.co.za\/blog\/2012\/05\/formatting-c-code-in-wordpress-post\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,16],"tags":[8,9,303,185,184],"class_list":["post-919","post","type-post","status-publish","format-standard","hentry","category-development","category-reference","tag-c","tag-code","tag-development","tag-plug-in","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/posts\/919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/comments?post=919"}],"version-history":[{"count":11,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/posts\/919\/revisions"}],"predecessor-version":[{"id":930,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/posts\/919\/revisions\/930"}],"wp:attachment":[{"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/media?parent=919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/categories?post=919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/tags?post=919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}