{"id":18718530,"url":"https://github.com/highlightjs/highlightjs-terraform","last_synced_at":"2025-04-12T14:03:21.395Z","repository":{"id":51632197,"uuid":"176412254","full_name":"highlightjs/highlightjs-terraform","owner":"highlightjs","description":"terraform language","archived":false,"fork":false,"pushed_at":"2022-05-09T16:36:07.000Z","size":12,"stargazers_count":6,"open_issues_count":7,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-03-25T19:59:39.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/highlightjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-19T03:03:07.000Z","updated_at":"2023-09-11T03:25:06.000Z","dependencies_parsed_at":"2022-08-22T15:31:12.300Z","dependency_job_id":null,"html_url":"https://github.com/highlightjs/highlightjs-terraform","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-terraform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-terraform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-terraform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-terraform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/highlightjs","download_url":"https://codeload.github.com/highlightjs/highlightjs-terraform/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223519436,"owners_count":17158875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T13:21:48.876Z","updated_at":"2024-11-07T13:21:49.498Z","avatar_url":"https://github.com/highlightjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://badgen.net/badge/maintainer/needed/red?icon=github\u0026scale=2)\n\nThis project is currently in need of a maintainer.  If you're interested please open an issue in the main Highlight.js project.\n\n---\n\n# Highlightjs-Terraform\n\n## Usage\n\n* Three files are required.\n\n    -  A style `.css` file.\n\n    - The `highlight.pack.js` file.\n\n    - The `terraform.js` file located in this repository.\n\n### Steps\n\n1. Clone this repository to your localhost using the following command: `git clone git@github.com:highlightjs/highlightjs-terraform.git`.\n\n2. Head to the [Highlightjs download page](https://highlightjs.org/download/).\n\n3. Under the heading **Custom package**, **Click** download.\n\n4. Extract the downloaded `.zip` file.\n\n5. In the extracted `.zip` file, choose a `.css` style in `./styles` and copy it to your project.\n\n6. In the extracted `.zip` file, copy the `highlight.pack.js` file to your project.\n\n7. From this repo, copy the `terraform.js` file to your project.\n\n8. Add the following lines to your website's `\u003chead\u003e` tag:\n\n    ```html\n    \u003clink rel=\"stylesheet\" href=\"/path/to/style.css\"\u003e\n    \u003cscript type=\"text/javascript\" src=\"/path/to/highlight.pack.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\" src=\"/path/to/terraform.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\"\u003e\n        hljs.registerLanguage('terraform', window.hljsDefineTerraform);\n        hljs.highlightAll();\n    \u003c/script\u003e\n    ```\n\nThat's it! Write some terraform code within `\u003cpre\u003e\u003ccode class=\"tf\"\u003eSome terraform code here!\u003c/code\u003e\u003c/pre\u003e` and behold, your coloured terraform code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-terraform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhighlightjs%2Fhighlightjs-terraform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-terraform/lists"}