Computer code

You can format code like this:

@@cyco format-code 1 lang-vb
Sub drawVillage(villageTop As Integer, villageLeft As Integer)
    'ARGH!
    Dim x as String
    x = "This Old House"
    drawHouse top:=villageTop, left:=villageLeft
    drawHouse top:=villageTop + 3, left:=villageLeft + 13
    drawHouse top:=villageTop + 15, left:=villageLeft + 4
    drawHouse top:=villageTop + 30, left:=villageLeft + 1
    drawHouse top:=villageTop + 31, left:=villageLeft + 12
End Sub
/@@cyco format-code 1 lang-vb

The 1 is the starting line number. The lang is optional.

See code.google.com/p/google-code-prettify/ for a list of languages.

Editors: 
kieran

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
Prove that you are sentient.
12 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.