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

Can we add Terraform as a Language? #511

Open
ao opened this issue Dec 15, 2021 · 1 comment
Open

Can we add Terraform as a Language? #511

ao opened this issue Dec 15, 2021 · 1 comment

Comments

@ao
Copy link

ao commented Dec 15, 2021

Hi @westonruter, Love the plugin, much better than all the other client-side rendering options.

What would it take to add Terraform/HCL?

I noticed the language-names.php file is generated from npm's highlight.js, which in turn has a list of supported languages.

I presume this list would need to be updated first?

If so, it looks like this is the route that would need to be taken?

@westonruter
Copy link
Owner

If the language is in highlight.js but isn't available here, then it's likely due to it not being yet added to highlight.php. I don't see it here: https://github.com/scrivo/highlight.php/tree/master/src/Highlight/languages

I see there is an issue to add support for terraform here: scrivo/highlight.php#58

See also #191.

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

No branches or pull requests

2 participants