Tag Archives: source

How to post source code on WordPress

IF YOU ARE ON WORDPRESS.COM:
The trick is to use the WordPress
[ sourcecode] tag, as documented at http://en.support.wordpress.com/code/posting-source-code/

Note: You have to enclose the [ sourcecode] shortcut tag in square – not pointy – brackets.
Here is a snippets of C code.

The default for wraplines is true, which causes long lines to be wrapped. That isn’t appropriate for Python, so specify Continue reading