From 3c6989323f353cee4a7e664361a9563d37d8579f Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Thu, 10 Oct 2024 12:56:39 -0400 Subject: [PATCH] docs: Add XML (#19026) Co-authored-by: Marshall Bowers --- docs/src/SUMMARY.md | 1 + docs/src/languages.md | 2 +- docs/src/languages/xml.md | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 docs/src/languages/xml.md diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md index e7d837e479bce1012ae260cdd8669e9be8e4ee68..8d82dad8c9e2e142d3afbe2ffe3c3e61e7a96979 100644 --- a/docs/src/SUMMARY.md +++ b/docs/src/SUMMARY.md @@ -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) diff --git a/docs/src/languages.md b/docs/src/languages.md index 4bc6e7d3d732a58fae50e2b511ca1dc4693d0dee..bfda1e6b0efe721a206b7b76474768e45ba3bd4c 100644 --- a/docs/src/languages.md +++ b/docs/src/languages.md @@ -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) diff --git a/docs/src/languages/xml.md b/docs/src/languages/xml.md new file mode 100644 index 0000000000000000000000000000000000000000..ab768dc9d9d27d9d51dd20c3272fc52d64e2e082 --- /dev/null +++ b/docs/src/languages/xml.md @@ -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"] + } +```