Adding hyperlinks to HTML formatter

Issue #1387 new
Jon Leech created an issue

I'd like to enhance HTML output (which will be imbedded in other documents) to link from certain function / token names to corresponding anchors elsewhere in the imbedding document (e.g. "vxFunction" would link to the #vxFunction anchor, as well as whatever visual style the formatter & class would normally produce), but am a newb at pygments and unclear how to go about this.

Is there an existing token type that a filter could modify matching names to, that would result in this happening? Or am I looking at modifying the html formatter class to accomplish this? I'm not sure which "Component" this belongs to since I'm not sure how to begin approaching the problem, but picked "filters" to begin with.

Comments (0)

  1. Log in to comment