How do I post source code?
January 13th, 2008
Leave a comment
Wrap your code in these tags: [sourcecode language='css']…[/sourcecode]. Do not copy and paste this code – write it out (You can replace the language with “css” with the language that you are writing in. Currently we support syntax highlighting for the following language codes:
C++ — cpp, c, c++
C# — c#, c-sharp, csharp
CSS — css
Delphi — delphi, pascal
Java — java
JavaScript — js, jscript, javascript
PHP — php
Python — py, python
Ruby — rb, ruby, rails, ror
SQL — sql
VB — vb, vb.net
XML/HTML — xml, html, xhtml, xslt
Example:
#content .post-title a { border-bottom-width: 0; }
#content .post p.img { float: left; margin: 0 15px 0 0; }
#content .post p.img img { padding: 8px;}