Posted by jpluimers on 2010/02/15
I just found out that the sourcecode tag in WordPress now supports even more languages.
This is the list of languages is below, it contains links to Wikipedia for each language.
Starred ones (bold and hyperlinks in this theme are the same ) are new since my post last year.
This is a follow up on the original article Including formatted sourcecode in WordPress « The Wiert Corner – Jeroen Pluimers’ irregular stream of Wiert stuff.
Posted in .NET, C#, CSS, Database Development, Delphi, Development, Encoding, Java, Software Development, SQL Server, Web Development, WordPress, XML, XML/XSD | Tagged: sourcecode language | 2 Comments »
Posted by jpluimers on 2009/04/22
Since I’m quite new to WordPress it is a learn as-I-go process (sounds familiar huh?) and a major goal of this blog is to keep track of things so that I don’t forget them:
Including formatted code in your blog is easy, WordPress has a FAQ about it!
Basically it comes down to adding the
sourcecode shortcode and then make sure the
language attribute has the right value.
But there are some gotcha’s that are not in the FAQ:
- paste the
sourcecode shortcode as “plain text” (or in the HTML editor) otherwise it will get span tags around it and not render as code
- C# has
csharp (if you use a non-existing language code, it will not render as code either)
The language codes I will probably use most are
delphi, followed by
sql and maybe some
In your editor, you will then see something like this:
Read the rest of this entry »
Posted in Development, WordPress | Tagged: sourcecode language | 8 Comments »