Smileyt / python-markdown2

Automatically exported from code.google.com/p/python-markdown2
Other
0 stars 0 forks source link

Additional options for code-color extension. #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here the patch, which allow to pass additional options to pygments highlighter.

For example, now you can tell it, to inline css styles or to add line numbers:

{{{
    extras = {"code-color": {"noclasses": True, 'linenos': True}}
}}}

Original issue reported on code.google.com by svetlyak...@gmail.com on 13 Nov 2008 at 1:00

Attachments:

GoogleCodeExporter commented 8 years ago
Great, thanks. The test cases are much appreciated. Commited (with only slight 
mod to
the formatter_opts var name and addition to CHANGES.txt) as r178.

I just noticed your http://code.google.com/p/django-markdown2/ project. Very 
cool.
I'll have to start using that instead of my cobbled templatetags.

Original comment by tre...@gmail.com on 19 Nov 2008 at 4:33

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by svetlyak...@gmail.com on 19 Nov 2008 at 6:55