diff options
author | Rob McBroom <github@skurfer.com> | 2011-06-19 15:02:08 -0400 |
---|---|---|
committer | Rob McBroom <github@skurfer.com> | 2011-06-19 15:02:08 -0400 |
commit | 1dfe89c5c4a34ca23dd7a5b3207bb406f76c1833 (patch) | |
tree | 222cac3ea503fd71aabe4fcdd9173cef228decfe /docs | |
parent | c2cca0cefe6fb9977a23008af17641531e3b9e43 (diff) | |
download | markdown-1dfe89c5c4a34ca23dd7a5b3207bb406f76c1833.tar.gz markdown-1dfe89c5c4a34ca23dd7a5b3207bb406f76c1833.tar.bz2 markdown-1dfe89c5c4a34ca23dd7a5b3207bb406f76c1833.zip |
allow language guessing to be disabled by passing a setting to CodeHilite - closes #24
Diffstat (limited to 'docs')
-rw-r--r-- | docs/extensions/CodeHilite.txt | 7 |
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)'] + ... ) |