-
Notifications
You must be signed in to change notification settings - Fork 442
fenced code blocks
tkliuxing edited this page Sep 13, 2012
·
7 revisions
It allows a code block to not have to be indented by fencing it with '```' on a line before and after. Based on [GFM](<http://github.github.com/github-flavored-markdown/).
Some code:
``` print "hi" ```
print "hi"
It includes support for code syntax highlighting as per GFM. You must have the pygments Python module installed for this to work.
```python if True: print "hi" ```
if True:
print "hi"This obsolets the code-color extra.
(Return to Extras page.)