Accept pygments options in highlighting (BB-6775)

Issue #5582 closed
Marcus Bertrand
staff created an issue

In areas where users wish to highlight code, Bitbucket should support the additional options available in pygments for that specific lexer. For example, PHP has the 'startinline' option which some users may wish to utilize.

Comments (7)

  1. Brian Mearns

    As a use case, I'm working on a PHP project, and everytime I want to include a PHP snippet in my wiki, I have to include the "<?php" and "?>" start and end tags or it doesn't get highlighted. If I could pass the "startinline" option to Pygments, I wouldn't have to do this and the wiki would be much cleaner.

  2. Log in to comment