Template:SyntaxHighlight/doc

Usage
This template makes it easier to make use of the Syntaxhighlight extension. Rather than using the tag block, you can now simply use the  template.

Examples
The following code snippets are taken from the ideone.com samples page and are only being used to demonstrate this template's functionality.

...
The default with no parameters works fine, setting the language to "text". Hello world

...
Setting the language to "java" seems to work quite fine. /* package whatever; // don't place package name! */ import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {  public static void main (String[] args) throws java.lang.Exception {       BufferedReader r = new BufferedReader (new InputStreamReader (System.in)); String s;       while (!(s=r.readLine).startsWith("42")) System.out.println(s); } }

...
Specifying line numbers as GESHI_NORMAL_LINE_NUMBERS (using the Variables extension) doesn't seem to work. local read, write = io.read, io.write local num, nl = '*n', '\n' while true do local a = read(num) if a == 42 then return end write(a, nl) end

...
Specifying a start for line numbering doesn't work either. n = int(raw_input) while n != 42: print n  n = int(raw_input)

...
Highlighting a specific line number doesn't work either. create table tbl(str varchar(20)); insert into tbl values('Hello world!'); select * from tbl;