You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
paultyng
changed the title
Add back the ability to inject Terraform syntax to markdown code blocks
Add ability to inject Terraform syntax to markdown code blocks
Jun 18, 2020
To clarify, the desired behavior here is that markdown files that contain Terraform code should receive syntax highlighting. They key challenges are (a) how to avoid claiming markdown and breaking other markdown highlighting, and (b) how to pass these files and have them processed correctly by the language server. There's an open question about whether the language server needs to be involved here.
It's also possible this could be handled in VSCode's existing markdown embedded syntax highlighting - this is a research question
radeksimko
changed the title
Add ability to inject Terraform syntax to markdown code blocks
Support files with embedded Terraform syntax (e.g. Markdown or ERB)
Apr 11, 2022
Background
Both LSP and VS Code mostly make the assumption that each file has a single language and based on that language it decides whether to
There are files which may embed Terraform syntax in some ways, e.g.
```terraform
There also reverse examples, where syntax of other languages is embedded within Terraform, e.g. YAML or JSON
LSP
See hashicorp/terraform-ls#633 for more
microsoft/language-server-protocol#1252 has possibly most context, including links to some workarounds.
Syntax Highlighting
See #328 for more
Related to #225, the implementation could be something like:
Proposal
TODO
The text was updated successfully, but these errors were encountered: