From 3aad1dd72fa5d56c735688d91c4589531044ba02 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 28 Jun 2012 06:37:03 -0400 Subject: Fixed #110. Documented the 'fenced_code' extension's support for the 'codehilite' extension. --- docs/extensions/fenced_code_blocks.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs') 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:
<p>HTML Document</p>
     
+[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 -- cgit v1.2.3