pygments_renderer should support passing options to lexers
|Reported by:||Tim Hatch||Owned by:||Ryan J Ollos|
Pygments lexer options can be specified as WikiProcessor arguments and defaults can be set in the environment configuration.
I decided to split this out of #5613 because that was originally about allowing short names as wiki processors. Someone brought this up on IRC as well today, so I decided to give it a shot. I'm thinking the main place to set options should be in trac.ini, but I'd like more input (do we need a WebAdmin page for them? a way to set them as part of a wiki processor would also be great, I think, especially in the case of 'startinline' for php. I'm going to attach a first implementation for 0.11-dev, followed by an adaptation for 0.10's tracpygments.
I would like feedback, particularly on whether this is something other people are interested in, and whether it should be specified somehow for wiki processors too.
Change History (13)
comment:5 by , 14 years ago
|Component:||version control/browser → rendering|
|Milestone:||0.12 → next-major-0.1X|
|Type:||defect → enhancement|
comment:10 by , 8 years ago
|Milestone:||next-major-releases → 1.2|
|Status:||new → assigned|