feat: add syntax highlighting to .env editor tab (#1459)

Apply Monaco built-in ini language mode to the .env editor tab,
matching the syntax highlighting already used by the FileViewer,
diff previews, and Git source diffs for env content.

- EditorView.tsx: change env tab language from plaintext to ini
- Add EditorView.test.tsx: 3 cases asserting ini/yaml/files tabs
- Docs: update editor.mdx to reflect env tab has highlighting
This commit is contained in:
Anso
2026-06-25 18:25:53 -04:00
committed by GitHub
parent a698aaa926
commit 3bf677af6c
3 changed files with 141 additions and 2 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ The editor card has three tabs:
| Tab | Purpose |
|-----|---------|
| `compose.yaml` | YAML editor with syntax highlighting. Always available. |
| `.env` | Plaintext editor for the discovered env file. Disabled when the stack has no env file. |
| `.env` | Environment file editor with syntax highlighting. Disabled when the stack has no env file. |
| **Files** | Browseable directory tree for the stack folder. See the dedicated [Stack File Explorer](/features/stack-file-explorer) page for permissions, upload caps, and protected-file behavior. |
Above the editor area, the toolbar carries: