Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Added 'line numbers' to 'sourcecode' areas! Finally :)
Browse files Browse the repository at this point in the history
  • Loading branch information
detro authored and Nick Johnson committed Feb 3, 2011
1 parent adfa157 commit 2595ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/markdown_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2595ac9

Please sign in to comment.