SZC’s Agglomeration

{an agglomeration of laconic notes in relation to anything that sparks my interest}

Archive for the ‘blog’ Category

posting code in wordpress

Posted by Stefan Camilleri on {2008.July.13}

/** Cruising the sea of blogs by the coding monkeys here on WordPress, I cannot fail to realise that there is a good bunch of people out there who have not yet discovered how to use the wordpress way of pasting code into their blogs */

So, in the hope that some will actually read this and take advantage of it, here goes {

Well, it is no rocket science really.  All you need to do is to enclose your code in a set of

put your code here

where ‘lingo’ can be any one of {

  • cpp
  • csharp
  • css
  • delphi
  • html
  • java
  • jscript
  • php
  • python
  • ruby
  • sql
  • vb
  • xml

}

}

Hope that helps :)

<h2>Happy blogging</h2>

Posted in aesthetics, blog | 2 Comments »