Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Template Language Missing #74

Open
jacobalvarez opened this issue May 4, 2020 · 3 comments
Open

PHP Template Language Missing #74

jacobalvarez opened this issue May 4, 2020 · 3 comments

Comments

@jacobalvarez
Copy link

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
Copy link
Contributor

taufik-nurrohman commented May 4, 2020

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
Copy link
Collaborator

allejo commented May 5, 2020

"PHP Template" was added in highlight.js 10.0.0 (see highlightjs/highlight.js#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.

@allejo allejo added this to the v10.0.x milestone May 5, 2020
@jacobalvarez
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants