Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown Code blocks Terraform Syntax highlightingNew to Visual Studio Code? Get it now.
Markdown Code blocks Terraform Syntax highlighting

Markdown Code blocks Terraform Syntax highlighting

Saverio Miroddi

|
1,011 installs
| (1) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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:

Highlighted block rendering

This work based on Matt Bierner's work.

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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft