diff options
author | Waylan Limberg <waylan@gmail.com> | 2008-10-14 21:52:15 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2008-10-14 21:52:15 -0400 |
commit | 497932647e2bb489ce29c9cefd549e10f752757d (patch) | |
tree | e0126a32e1e361648e2fa90bf7474201ea0d1ae2 /markdown_extensions/codehilite.py | |
parent | 8e1d6f83826b2ef85534b9158b7a28914bc65b68 (diff) | |
download | markdown-497932647e2bb489ce29c9cefd549e10f752757d.tar.gz markdown-497932647e2bb489ce29c9cefd549e10f752757d.tar.bz2 markdown-497932647e2bb489ce29c9cefd549e10f752757d.zip |
Added extension doctests to the regression tests and fixed a few broken doctests in CodeHilite and WikiLinks extentions.
Diffstat (limited to 'markdown_extensions/codehilite.py')
-rw-r--r-- | markdown_extensions/codehilite.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown_extensions/codehilite.py b/markdown_extensions/codehilite.py index 89de58b..9371e79 100644 --- a/markdown_extensions/codehilite.py +++ b/markdown_extensions/codehilite.py @@ -36,7 +36,7 @@ class CodeHilite: Determine language of source code, and pass it into the pygments hilighter. Basic Usage: - >>> code = CodeHilite(src = text) + >>> code = CodeHilite(src = 'some text') >>> html = code.hilite() * src: Source string or any object with a .readline attribute. @@ -47,7 +47,7 @@ class CodeHilite: Low Level Usage: >>> code = CodeHilite() - >>> code.src = text # String or anything with a .readline attribute + >>> code.src = 'some text' # String or anything with a .readline attr. >>> code.linenos = True # True or False; Turns line numbering on or of. >>> html = code.hilite() |