Syntax highlighting for a PHP gist can be added, by adding the <?php at the start. However, this may encourage folks to also copy that delimiter into the middle of their theme or plugin file, and adding a code comment or note about not copying it gets tedious.
One tip I like to do is [gist id="..." lines="2-9999" lines_start=1] so that the snippet does not show the first line, but still shows the line numbers counting from 1.
Would it make sense to have a boolean attribute that handles this? i.e.
Syntax highlighting for a PHP gist can be added, by adding the
<?php
at the start. However, this may encourage folks to also copy that delimiter into the middle of their theme or plugin file, and adding a code comment or note about not copying it gets tedious.One tip I like to do is
[gist id="..." lines="2-9999" lines_start=1]
so that the snippet does not show the first line, but still shows the line numbers counting from 1.Would it make sense to have a boolean attribute that handles this? i.e.
... or ...
... is the shorthand for ...
... or after #59 ...