An open API service indexing awesome lists of open source software.

https://github.com/highlightjs/highlightjs-terraform

terraform language
https://github.com/highlightjs/highlightjs-terraform

Last synced: 2 months ago
JSON representation

terraform language

Awesome Lists containing this project

README

        

![](https://badgen.net/badge/maintainer/needed/red?icon=github&scale=2)

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 `

Some terraform code here!
` and behold, your coloured terraform code.