Skip to content

NathanSnail/noita_xml_dtd

Repository files navigation

Noita XML XSD

Contains xsd definitions for autocomplete and type checking in xml files for Noita. Currently supports entities, sprites, materials. The end goal is documentation for 100% of the xml schemas Noita supports.

In order to use this, link this xsd in your xml lsp, Noita does support this syntax:

<?xml-model href="merged.xsd" type="application/xml-xsd"?>

- it's parser skips it. but linking it globally is better. In Neovim this is how you'd configure it for lemminx with nvim-lspconfig, the general approach should be applicable to any editor though.

local servers = {
	lemminx = {
		settings = {
			xml = {
				fileAssociations = {
					{
						systemId = "/home/nathan/Documents/code/noita_xml_dtd/merged.xsd",
						pattern = "**/*.xml",
					},
				},
			},
		},
	},
}

About

DTD schema for noita xml things

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages