Answer: To define a new language in a Zed extension, create a subdirectory inside the `languages` directory of your extension containing a file called `config.toml` with the required `name` and `grammar` keys, plus optional keys like `path_suffixes` and `line_comments`. Status: Overdue (check was due 2026-11-20T13:40:40Z and has not succeeded) Entry: tool/zed/integrations/define-language-config-toml Revision: 1 Digest: sha256:8940613b8326af6d (changes whenever the content changes) Timeline: Created: 2026-11-13T04:02:16Z Last changed: 2026-11-13T04:02:16Z Last verified: 2026-11-19T13:40:40Z Next check: 2026-11-20T13:40:40Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of config file name | config.toml | [1] | 2026-11-19 required key: name | name | [1] | 2026-11-19 required key: grammar | grammar | [1] | 2026-11-19 optional key: path_suffixes | path_suffixes | [1] | 2026-11-19 optional key: line_comments | line_comments | [1] | 2026-11-19 default tab_size | 4 | [1] | 2026-11-19 Sources: [1] Zed Industries. "zed.dev/docs/extensions/languages.md". https://zed.dev/docs/extensions/languages.md Role: primary. Accessed: 2026-11-19T13:40:40Z Quote: "This subdirectory must contain a file called `config.toml` file with the following structure:" (Supports: config file name) Quote: "`name` (required) is the human readable name that will show up in the Select Language dropdown." (Supports: required key: name) Quote: "`grammar` (required) is the name of a grammar. Grammars are registered separately, described below." (Supports: required key: grammar) Quote: "`path_suffixes` is an array of file suffixes that should be associated with this language." (Supports: optional key: path_suffixes) Quote: "`line_comments` is an array of strings that are used to identify line comments in the language." (Supports: optional key: line_comments) Quote: "`tab_size` defines the indentation/tab size used for this language (default is `4`)." (Supports: default tab_size) Snapshot SHA-256: 35f20391ad5be8ce074c54cab3a1bf86fbd6b33dcc0eccc29a87660c47403167 (captured 2026-11-13T04:02:16Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T04:02:16Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:40:40Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:40:40Z Last attempt: 2026-11-19T13:40:40Z Notes and limitations: Extracted automatically from a single official source (section "Language Metadata"). Human-readable page: https://zed.dev/docs/extensions/languages.html Related: https://latestn.com/tool/zed/integrations/define-mcp-server-extension How do I define an MCP server extension for Zed? https://latestn.com/tool/zed/integrations/enable-asciidoc-support How do I enable AsciiDoc language support in Zed? https://latestn.com/tool/zed/integrations/enable-astro-support How do I enable Astro language support in Zed? https://latestn.com/tool/zed/integrations/configure-other-edit-prediction-providers How do I configure Zed to use GitHub Copilot or another provider for edit prediction? https://latestn.com/tool/zed/integrations/define-debug-locator How do I define a debug locator in a Zed debugger extension? https://latestn.com/tool/zed/integrations/define-extension-snippets How do I define snippets in a Zed extension? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T04:02:16Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/zed/integrations/define-language-config-toml/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/zed/integrations/define-language-config-toml POST: https://latestn.com/dispute/tool/zed/integrations/define-language-config-toml with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/integrations/define-language-config-toml?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I define a new language in a Zed extension using config.toml? Revision 1, last verified 2026-11-19T13:40:40Z. https://latestn.com/tool/zed/integrations/define-language-config-toml (accessed 2026-11-21T10:01:07Z). @misc{LatestN_tool_zed_integrations_define_language_config_toml_r1, title = {How do I define a new language in a Zed extension using config.toml?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/integrations/define-language-config-toml}}, note = {Revision 1; digest sha256:8940613b8326af6d; last verified 2026-11-19T13:40:40Z; accessed 2026-11-21T10:01:07Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/zed/integrations/define-language-config-toml