https://github.com/64kramsystem/vscode-markdown-code-blocks-terraform-syntax-highlighting
https://github.com/64kramsystem/vscode-markdown-code-blocks-terraform-syntax-highlighting
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/64kramsystem/vscode-markdown-code-blocks-terraform-syntax-highlighting
- Owner: 64kramsystem
- License: mit
- Created: 2021-12-27T14:56:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-27T15:27:49.000Z (over 3 years ago)
- Last Synced: 2025-01-22T23:57:01.017Z (5 months ago)
- Size: 40 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# VSCode Markdown Code blocks Terraform Syntax highlighting
This extension adds Terraform syntax highlighting to Markdown fenced code blocks.
Code blocks like the following:
```tf
terraform {
required_version = "1.1.2"
}provider "aws" {
region = var.aws_default_region
}
```will be highlighted, like:

This work based on [Matt Bierner's work](https://github.com/mjbvz/vscode-fenced-code-block-grammar-injection-example).
## Setup
This extension does not add the grammar; it only connects Markdown ASM code blocks to the existing ASM grammar.
For this reason, it requires a preexisting extension that provides the grammar, for example, [Terraform](https://marketplace.visualstudio.com/items?itemName=4ops.terraform).