Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I edit HTML.tmLanguage in sublime on mac osx

I'm to change it to support non-quote id, as in:

<div id=someId></div>

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

But am having issues finding where to edit the tmLanguage file

like image 518
Hugo Forte Avatar asked Dec 27 '22 20:12

Hugo Forte


1 Answers

Don't listen to Jamie's answer. You should never be editing the Pristine packages. Instead, you can find all of Sublime Text's 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 within the HTML folder, your changes will be overridden when Sublime Text is updated. To prevent this, duplicate the HTML folder and renaming it to Better HTML. Then in your User Settings (Preferences > Settings - User) add the following:

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

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

like image 86
Liam Cain Avatar answered Dec 29 '22 09:12

Liam Cain