aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-06-19 17:14:56 -0700
committerWaylan Limberg <waylan@gmail.com>2011-06-19 17:14:56 -0700
commit266590e36316dbbb73466c0326325d1355f2e75e (patch)
tree222cac3ea503fd71aabe4fcdd9173cef228decfe /docs
parentc2cca0cefe6fb9977a23008af17641531e3b9e43 (diff)
parent1dfe89c5c4a34ca23dd7a5b3207bb406f76c1833 (diff)
downloadmarkdown-266590e36316dbbb73466c0326325d1355f2e75e.tar.gz
markdown-266590e36316dbbb73466c0326325d1355f2e75e.tar.bz2
markdown-266590e36316dbbb73466c0326325d1355f2e75e.zip
Merge pull request #25 from skurfer/noGuessing
allow language guessing to be disabled by passing a setting to CodeHilite - closes #24
Diffstat (limited to 'docs')
-rw-r--r--docs/extensions/CodeHilite.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/extensions/CodeHilite.txt b/docs/extensions/CodeHilite.txt
index 482ad60..68288c8 100644
--- a/docs/extensions/CodeHilite.txt
+++ b/docs/extensions/CodeHilite.txt
@@ -111,3 +111,10 @@ to do so.
>>> html = markdown.markdown(text,
... ['codehilite(force_linenos=True)']
... )
+
+If you want to prevent Pygments from guessing the language, only highlighting
+blocks when you explicitly request it, set the `guess_lang` setting to 'False'.
+
+ >>> html = markdown.markdown(text,
+ ... ['codehilite(guess_lang=True)']
+ ... )