flosell / iam-policy-json-to-terraform

Small tool to convert an IAM Policy in JSON format into a Terraform aws_iam_policy_document
https://flosell.github.io/iam-policy-json-to-terraform/
Apache License 2.0
774 stars 58 forks source link

Add syntax highlight for hcl block #32

Closed gordonbondon closed 2 years ago

gordonbondon commented 2 years ago

Thank you for creating this tool, it's very useful!

This PR adds syntax highlight for terraform part using Prism.js. Prism seems like a good option since it has native HCL support and support for live syntax highlights which can be used later to add JSON syntax.

Screenshot 2021-10-21 at 00 57 10

Relates to #27

Happy Hacktoberfest!

flosell commented 2 years ago

Hey @gordonbondon,

Happy Hacktoberfest! 🎉 Thanks for this PR, looking great! 🚢