docs: Add XML (#19026)

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
Peter Tripp 2024-10-10 12:56:39 -04:00 committed by GitHub
parent 596d8b2fe3
commit 3c6989323f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 1 deletions

View file

@ -110,6 +110,7 @@
- [TypeScript](./languages/typescript.md)
- [Uiua](./languages/uiua.md)
- [Vue](./languages/vue.md)
- [XML](./languages/xml.md)
- [YAML](./languages/yaml.md)
- [Yarn](./languages/yarn.md)
- [Zig](./languages/zig.md)

View file

@ -61,6 +61,7 @@ Zed supports hundreds of programming languages and text formats. Some work out-o
- [TypeScript](./languages/typescript.md)
- [Uiua](./languages/uiua.md)
- [Vue](./languages/vue.md)
- [XML](./languages/xml.md)
- [YAML](./languages/yaml.md)
- [Yarn](./languages/yarn.md)
- [Zig](./languages/zig.md)
@ -157,4 +158,3 @@ Zed supports hundreds of programming languages and text formats. Some work out-o
- [VHS](https://github.com/eth0net/zed-vhs)
- [Wgsl](https://github.com/luan/zed-wgsl)
- [WIT](https://github.com/valentinegb/zed-wit)
- [XML](https://github.com/sweetppro/zed-xml)

15
docs/src/languages/xml.md Normal file
View file

@ -0,0 +1,15 @@
# XML
XML support is available through the [XML extension](https://github.com/sweetppro/zed-xml/).
- Tree Sitter: [tree-sitter-grammars/tree-sitter-xml](https://github.com/tree-sitter-grammars/tree-sitter-xml)
## Configuration
If you have additional file extensions that are not being automatically recognized as XML just add them to [file_types](../configuring-zed.md#file-types) in your Zed settings:
```json
"file_types": {
"XML": ["rdf", "gpx", "kml"]
}
```