-
Notifications
You must be signed in to change notification settings - Fork 893
Closed
Labels
extensionRelated to one or more of the included extensions.Related to one or more of the included extensions.featureFeature request.Feature request.someday-maybeApproved low priority request.Approved low priority request.
Description
I would like to use Python Markdown in conjunction with CodeHilite plugin + Pygments to highlight some PHP code snippets, often one-liners. Currently, CodeHilite doesn't allow any lexer configuration (only some formatter configuration).
Pygments' default PHP lexer has the option startinline, which is set to False by default. This means that if I want any PHP code highlighted, I must start it with <?php. This is not very pretty (again: think about one-liners) and I would rather have Pygments instructed to switch this setting to True.
Currently it is not possible to pass in any lexer options to CodeHilite. It would be nice to be able to add lexer configuration to the lexer name, e.g.:
:::php(startinline=True)
Metadata
Metadata
Assignees
Labels
extensionRelated to one or more of the included extensions.Related to one or more of the included extensions.featureFeature request.Feature request.someday-maybeApproved low priority request.Approved low priority request.