aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2012-06-28 06:37:03 -0400
committerWaylan Limberg <waylan@gmail.com>2012-06-28 06:37:03 -0400
commit3aad1dd72fa5d56c735688d91c4589531044ba02 (patch)
treefbdcd75119f7b39af931959b32bb91ada5a73524 /docs
parent7cc5ad34b065febe7536530b8cdae4602d34a080 (diff)
downloadmarkdown-3aad1dd72fa5d56c735688d91c4589531044ba02.tar.gz
markdown-3aad1dd72fa5d56c735688d91c4589531044ba02.tar.bz2
markdown-3aad1dd72fa5d56c735688d91c4589531044ba02.zip
Fixed #110. Documented the 'fenced_code' extension's support for the 'codehilite' extension.
Diffstat (limited to 'docs')
-rw-r--r--docs/extensions/fenced_code_blocks.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/extensions/fenced_code_blocks.txt b/docs/extensions/fenced_code_blocks.txt
index 0aa0d34..c54c5bd 100644
--- a/docs/extensions/fenced_code_blocks.txt
+++ b/docs/extensions/fenced_code_blocks.txt
@@ -58,6 +58,14 @@ The above will output:
<pre><code class="html">&lt;p&gt;HTML Document&lt;/p&gt;
</code></pre>
+[Github][]'s tilde (`\``) syntax is also supported:
+
+ ```python
+ # more python code
+ ```
+
+[Github]: http://github.github.com/github-flavored-markdown/
+
Usage
-----
@@ -65,5 +73,10 @@ From the Python interpreter:
>>> html = markdown.markdown(text, ['fenced_code'])
+If you would like to have your fenced code blocks highlighted with the
+[CodeHilite][] extension, simply include that extension and the language
+of your fenced code blocks will be passed in and highlighted appropriately.
+ >>> html = markdown.markdown(text, ['fenced_code', 'codehilite'])
+[CodeHilite]: code_hilite.html