Commit Graph

3 Commits

Author SHA1 Message Date
Zach Leatherman
3eb6c6a67d Upgrade syntax highlighter to 4.0 and update example to use diff syntax 2022-03-03 17:11:08 -06:00
Zach Leatherman
963b5d46e6 Refactors Liquid syntax highlighters to add line highlights.
Usage (ranges are space separated):

{% highlight js 1,4-6 %}
One range
Adds `highlight-line-active` to lines 1,4,5,6

{% highlight js 3-4 -1 %}
Two ranges (add/remove), remove is N/A
Adds `highlight-line-add` to lines 3,4

{% highlight js -1 3-4 %}
Two ranges (add/remove), add is N/A
Adds `highlight-line-remove` to lines 3,4

{% highlight js 3-4 5,8-10 %}
Two ranges, both are used
Adds `highlight-line-add` to lines 3-4
Adds `highlight-line-remove` to lines 5,8,9,10
2018-01-26 22:12:46 -06:00
Zach Leatherman
14655cb1c4 Fixes #3 2018-01-22 22:53:46 -06:00