Tuesday, August 18, 2009

How to post source code for viewing in WordPress.com

WordPress.com allow you to post source code of some languages.

The supported languages include:

  • bash

  • cpp

  • csharp

  • css

  • delphi

  • html

  • java

  • jscript

  • php

  • python

  • ruby

  • shell

  • sql

  • vb

  • xml


What you need to do is to wrap the source code between sourcecode tag. For example:
[sourcecode language='python']

your code here

[/sourcecode]

No comments :

Post a Comment