$def with (code, lang=None) $if lang: $ lang = "lang-" + lang $def splitlines(text): $ text = text.rstrip() $ n = text.count("\n") + 1
\
    $for i in range(n): $("%4d" % (i+1))
    
$text
Templates in the website are disabled now. Editing them will not have any effect on the live website.
$:splitlines(code)