Open jacobalvarez opened 4 years ago
It has been discussed in the highlight.js repository. For the current version, it should be possible via language-xml
or language-html
class.
"PHP Template" was added in highlight.js 10.0.0 (see https://github.com/highlightjs/highlight.js/pull/2417); this project is still at 9.18.1. You can try xml
or html
as mentioned to see if it gives you the desired results but there are no guarantees it'll work the same as highlight.js.
Ah, I hadn't realized this was a newer feature of highlight.js. Thank you gentleman.
The "PHP Template" language is missing. Only "php" can be passed to Highlighter::highlight(), but it should allow something like "php-template" or "php_template".
See https://highlightjs.org/static/demo/: