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
This is just to let know some alternate option available in highlightjs.
I am not still sure if adding highlight2.tpl would be needed.
So not creating a pull request.
I would likely merge highlight2.tpl template to original highlight.tpl.
i.e, without &format= set {{{format}}} is empty.
The text was updated successfully, but these errors were encountered:
Yes, i was thinking of adding a specific format option to hl.
Actually I think i prefer hl as it is shorter, and we can use it like hl=sh or hl=lua
I have opened an issue to add the option to allow a empty argument here kernelsauce/turbo#205
This would set the auto mode for highlight.js instead of using a boolean.
var body = document.getElementById('body');
codes = body.getElementsByTagName('code');
for (c in codes) { codes[c].className='{{{format}}}'; hljs.highlightBlock(codes[c]); }
Pls have a look,
https://gist.github.com/insteps/70315bcaeb4b28734138
This is just to let know some alternate option available in highlightjs.
I am not still sure if adding highlight2.tpl would be needed.
So not creating a pull request.
I would likely merge highlight2.tpl template to original highlight.tpl.
i.e, without &format= set {{{format}}} is empty.
The text was updated successfully, but these errors were encountered: