Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

fenced code blocks

trentm edited this page · 5 revisions

fenced-code-blocks extra

It allows a code block to not have to be indented by fencing it with '```' on a line before and after. Based on GFM.

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 obsoletes the code-color extra.

To really show colors you need to add one of pygment css files, see https://github.com/richleland/pygments-css.

(Return to Extras page.)

Something went wrong with that request. Please try again.