https://github.com/highlightjs/highlightjs-terraform
terraform language
https://github.com/highlightjs/highlightjs-terraform
Last synced: 2 months ago
JSON representation
terraform language
- Host: GitHub
- URL: https://github.com/highlightjs/highlightjs-terraform
- Owner: highlightjs
- License: mit
- Created: 2019-03-19T03:03:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-09T16:36:07.000Z (about 3 years ago)
- Last Synced: 2024-03-25T19:59:39.311Z (about 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 6
- Watchers: 6
- Forks: 9
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

This project is currently in need of a maintainer. If you're interested please open an issue in the main Highlight.js project.
---
# Highlightjs-Terraform
## Usage
* Three files are required.
- A style `.css` file.
- The `highlight.pack.js` file.
- The `terraform.js` file located in this repository.
### Steps
1. Clone this repository to your localhost using the following command: `git clone [email protected]:highlightjs/highlightjs-terraform.git`.
2. Head to the [Highlightjs download page](https://highlightjs.org/download/).
3. Under the heading **Custom package**, **Click** download.
4. Extract the downloaded `.zip` file.
5. In the extracted `.zip` file, choose a `.css` style in `./styles` and copy it to your project.
6. In the extracted `.zip` file, copy the `highlight.pack.js` file to your project.
7. From this repo, copy the `terraform.js` file to your project.
8. Add the following lines to your website's `` tag:
```html
hljs.registerLanguage('terraform', window.hljsDefineTerraform);
hljs.highlightAll();
```That's it! Write some terraform code within `
` and behold, your coloured terraform code.Some terraform code here!