Steps to reproduce
- Write some terraform config in editor mode like:
(“```hcl”)
provider "google" {
credentials = file(var.credentials_file)
project = var.project
region = var.region
zone = var.zone
}
- Syntax is not highlighted in editor mode.
- Enter reader mode.
- Syntax is now highlighted
Did you follow the troubleshooting guide? [Y/N]
Yes, and didn’t work.
Expected result
Terraform syntax should be highlighted in both modes.
Actual result
Syntax not highlighted.
Environment
SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.6.5
Operating system: Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 23.5.0
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: Minimal v7.7.10
Snippets enabled: 0
Restricted mode: off
Plugins installed: 8
Plugins enabled: 8
1: Advanced Tables v0.21.0
2: Copilot v2.5.3
3: Excalidraw v2.3.0
4: Git v2.25.0
5: Minimal Theme Settings v8.0.2
6: Sheets Extended v1.2.10
7: Smart Typography v1.0.18
8: Tasks v7.7.0
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
Additional information
https://www.reddit.com/r/ObsidianMD/comments/17uyyrl/obsidian_terraform_code_support_hcl/
Mentioned in this thread (Reddit), but I didn’t see any forum posts about this…?