Skip to content
Browse files

Added 'line numbers' to 'sourcecode' areas! Finally :)

  • Loading branch information...
1 parent adfa157 commit 2595ac9a66a4c1d1a458fc8a6dcfd35349682fb1 @detro detro committed with Nick Johnson Nov 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/markdown_processor.py
View
2 lib/markdown_processor.py
@@ -53,7 +53,7 @@ class CodeBlockPreprocessor(TextPreprocessor):
pattern = re.compile(
r'\s*\[sourcecode:(.+?)\](.+?)\[/sourcecode\]\s*', re.S)
- formatter = HtmlFormatter(noclasses=INLINESTYLES, lineseparator=LINEENDING)
+ formatter = HtmlFormatter(noclasses=INLINESTYLES, lineseparator=LINEENDING, linenos='inline')
def run(self, lines):
def repl(m):

0 comments on commit 2595ac9

Please sign in to comment.
Something went wrong with that request. Please try again.