Edgewall Software

Opened 17 years ago

Last modified 9 years ago

#5654 closed enhancement

pygments_renderer should support passing options to lexers — at Initial Version

Reported by: Tim Hatch Owned by: Tim Hatch
Priority: normal Milestone: 1.2
Component: rendering Version: devel
Severity: normal Keywords: pygments
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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 (2)

by Tim Hatch, 17 years ago

Attachment: pygments-options.diff added

First version, against r5537 in 0.11-dev

by Tim Hatch, 17 years ago

Attachment: tracpygments-options.diff added

First version, against r2367 for tracpygments

Note: See TracTickets for help on using tickets.