Set up XML Schema as XML in TextMate
July 13th, 2007 | by Joe |Odd that this was not set by default, but TextMate did not include XML Schema (.xsd) documents to be recognized as XML. No matter - TextMate is beautifully extensible. This is easy to set using TextMate’s Bundle Editor for this and any other document extension that you’d like to be recognized as XML:
- In TextMate, choose Bundles > Bundle Editor > Edit Languages. This filters bundles to only show language options.
- In the Bundle Editor, expand the XML category and select the XML language icon.
- The second line sets a variable for “fileTypes”. Add .xsd to the comma-separated list.
- Close the Bundle Editor and you’re done.
The Bundle Editor in TextMate is a really powerful utility for customizing the handling of any language coding. This is a simple example, but it certainly opens the door to much more customization and functionality.