There's insufficient documentation on which code language identifier to use for the terraform language.
The expected values (tf
, hcl
, or terraform
) do not work.
Is this supported, and if so, what is the correct language identifier?
There's insufficient documentation on which code language identifier to use for the terraform language.
The expected values (tf
, hcl
, or terraform
) do not work.
Is this supported, and if so, what is the correct language identifier?
By performing a browser inspect
on one correctly-formatted answer, we can see that lang-hcl
is the identifier which works properly.
Using lang-hcl
(works):
provider "aws" {
# Sample
region = "us-east-1"
}
For reference:
Using hcl
(doesn't work):
provider "aws" {
# Sample
region = "us-east-1"
}
Using no hint (doesn't work):
provider "aws" {
# Sample
region = "us-east-1"
}
hcl
tag to matchlang-hcl
? I get that hcl might not have a perfect highlighter but if the default is better than none, should thehcl
be aligned withdefault
, thereby getting the improved behavior oflang-hcl
? – aaronsteers Apr 23 '20 at 17:26bug
tag because the intentional behavior of using no formatting onhcl
code hint seems worse than applying the default (which we get vialang-hcl
). – aaronsteers Apr 23 '20 at 17:28hcl
, second block islang-hcl
, third block is default (no tag). As of right now, just the middle block (lang-hcl
) is formatting as expected. – aaronsteers Apr 23 '20 at 17:53