How to edit HTML.tmLanguage in sublime on mac osx

I have to change it to support id without a quote, for example:

<div id=someId></div>

I found this http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8129

But I'm having trouble finding where to edit the tmLanguage file

+4
source share
2 answers

Do not listen to Jamie's answer. You should never edit Pristine packages. Instead, you can find all the Sublime Text packages and grammar files in ~/Library/Application Support/Sublime Text/Packages or, from within Sublime Text, go to Sublime Text > Preferences > Browse Packages . However, if you edit HTML.tmLanguage from the HTML folder, your changes will be discarded when you update Sublime Text. To prevent this, duplicate the HTML folder and rename it to Better HTML. Then in the user settings ( Preferences > Settings - User ) add the following:

 "ignored_packages": [ "HTML", "Vintage" ], 

Ignoring the default HTML package, Sublime Text will be forced to use your version of the HTML.tmLanguage file, and your changes will be saved.

+9
source

You can find the HTML.tmLanguage file by going to /Applications , and then right-click on Sublime Text 2.app and select "Show Package Contents". Then go to /Contents/Mac OS/Pristine Packages/ .

Inside this folder, you should see a collection of sublime-package files. Find HTML.sublime-package and rename it to HTML.zip . After that, you can extract the archive, like any other mail folder, and inside you should find all the tips related to the Sublime HTML package, including the HTML.tml language.

Be sure to compress again and then rename the folder back to the .sublime-package after making the changes!

EDIT: Since then I admitted that this is not true, Pristine Packages are never edited. Follow Boundincode's answer!

+1
source

All Articles