scrivo / highlight.php

A port of highlight.js by Ivan Sagalaev to PHP
BSD 3-Clause "New" or "Revised" License
695 stars 45 forks source link

PHP Template Language Missing #74

Open jacobalvarez opened 4 years ago

jacobalvarez commented 4 years ago

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/: image

taufik-nurrohman commented 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.

allejo commented 4 years ago

"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.

jacobalvarez commented 4 years ago

Ah, I hadn't realized this was a newer feature of highlight.js. Thank you gentleman.