refine the syntax highligting syntax
This commit is contained in:
@@ -192,24 +192,23 @@ In page files you can get automatic syntax highlighting for a wide range of
|
|||||||
languages (courtesy of [Pygments](http://pygments.org/)) by using the
|
languages (courtesy of [Pygments](http://pygments.org/)) by using the
|
||||||
following syntax:
|
following syntax:
|
||||||
|
|
||||||
```ruby```
|
```ruby
|
||||||
def foo
|
def foo
|
||||||
puts 'bar'
|
puts 'bar'
|
||||||
end
|
end
|
||||||
``````````
|
```
|
||||||
|
|
||||||
The block must start with three backticks (as the first characters on the
|
The block must start with three backticks (as the first characters on the
|
||||||
line). After that comes the name of the language that is contained by the
|
line). After that comes the name of the language that is contained by the
|
||||||
block. The language must be one of the `short name` lexer strings supported by
|
block. The language must be one of the `short name` lexer strings supported by
|
||||||
Pygments. See the [list of lexers](http://pygments.org/docs/lexers/) for valid
|
Pygments. See the [list of lexers](http://pygments.org/docs/lexers/) for valid
|
||||||
options. Following the language name you may optionally add an additional
|
options.
|
||||||
three backticks for aesthetic reasons.
|
|
||||||
|
|
||||||
If the block contents are indented two spaces or one tab, then that whitespace
|
If the block contents are indented two spaces or one tab, then that whitespace
|
||||||
will be ignored (this makes the blocks easier to read in plaintext).
|
will be ignored (this makes the blocks easier to read in plaintext).
|
||||||
|
|
||||||
The block must end with at least three backticks as the first characters on a
|
The block must end with three backticks as the first characters on a
|
||||||
line. You may add more backticks for balance if you like.
|
line.
|
||||||
|
|
||||||
|
|
||||||
## API DOCUMENTATION
|
## API DOCUMENTATION
|
||||||
|
|||||||
Reference in New Issue
Block a user