Commit Graph

3 Commits

Author SHA1 Message Date
Zach Leatherman
dfe49017c8 Separate files for syntax highlighters 2018-01-27 23:50:07 -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