[code:cpp;title:'Block Title';first-line:42;highlight:[43,45];]Preformatted Cpp Code with highlight and title.[/code]
Block Title
42
43
44
45
Preformatted
Cpp Code
with
highlight and title.
You can use the same sheme for code blocks in different languages by using a different language paramter e.g. [code:xml].
Language Parameters
applescript
bash
cpp
diff
java
js
lua
objc
perl
php
plain
py
sql
xml
Optional Parameters
title
true
Allows you to specify a title for the code block.
first-line
1
Allows you to change the first (starting) line number.
gutter
true
Allows you to turn gutter with line numbers on and off.
highlight
null
Allows you to highlight one or more lines to focus user’s attention. When specifying as a parameter, you have to pass an array looking value, like [1, 2, 3] or just an number for a single line.
smart-tabs
true
Allows you to turn smart tabs feature on and off.
tab-size
4
Allows you to adjust tab size.
auto-links
true
Allows you to turn detection of links in the highlighted element on and off. If the option is turned off, URLs won’t be clickable.