Template:lc

From Bibliotheca Anonoma
This page is a template. It contains no Bibliotheca Anonoma-related information, but should be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

Block code without header, but with line numbers. The line numbers help for long code, and won't get picked up by copy & paste.

Usage

{{Lc|
block
code
}}
block
code

Syntax Highlighting

By specifying the language to use, you can get syntax highlighting as well. Here's a long list of supported languages.

{{Lc|
# says hello
print "hello world"

# says goodbye
print "goodbye world"
|lang=python}}
# says hello
print "hello world"

# says goodbye
print "goodbye world"