I would like TextMate to recognize that RDF files are XML and highlight them as such but I can't seem to find a way to do this through the UI. Is there a way to add file extension/type associations?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
In the menu, go to Bundles -> Bundle Editor -> Edit Languages -> XML -> XML. (That is, in the section XML, you have both XML and XSL.) Then in the grammar you will see in the right pane, add RDF files to the
{ scopeName = 'text.xml';
fileTypes = ( 'xml', 'tld', 'jsp', 'pt', 'cpt', 'dtml', 'rss', 'opml' );
See this link for more gory details on filetype associations. |
|||||
|
|
Textmate 2 remembers the last language used for an extension. You could customise the bundle if you wish
|
|||
|
|