You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pygments supports a startinline option for PHP code blocks so that the code is still highlighted without requiring an opening php tag, ie <?php, at the top of a block.
Particularly for short code blocks, it'd be nice to be able to ommit the opening PHP tag and send the startinline option to the highlighter.
Having to add the <?php for each code block just to get highlighting is confusing (they copy that bit of the snippet as well) and distracting (they wonder why it's there) for readers.
I spent about 6 hours today trying to filter in pygments.hs or pygments.php and failed, then managed to get non-delimiter highlighting working by following the instructions at https://groups.google.com/forum/#!msg/pandoc-discuss/IjZ0xTPfhA0/IVlZW2b7AUQJ to change highlighting-kate then recompile it and pandoc (having never compiled anything before today)!
Can you link to the change in highlighting-kate please?
Pygments supports a
startinline
option for PHP code blocks so that the code is still highlighted without requiring an opening php tag, ie<?php
, at the top of a block.Particularly for short code blocks, it'd be nice to be able to ommit the opening PHP tag and send the
startinline
option to the highlighter.I found this option in jekyll/jekyll#1633
The text was updated successfully, but these errors were encountered: