Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't override syntax highlighting in sublime text 3

I manually installed a package awhile back for ST3 that had additional syntax highlighting languages. I have since removed it, and for the files it affected selected 'Open all with current extension as..' to now be Java. However when I re-open them they still default to the old package language. If I open up the syntax highlighting menu both languages are actually highlighted. If I reselect Java it will be correct until I close and re-open any file with that extension again.

Can anyone explain how I can either force it to always stay in Java or remove the other language all together?

like image 831
turbo2oh Avatar asked Sep 05 '25 17:09

turbo2oh


1 Answers

Go to Preferences -> Browse Packages and navigate to the User folder. There should be a file in there named OtherLanguage.sublime-settings. Delete that file, restart Sublime, and you should be all set. If that still doesn't work, look for a Java.sublime-settings file in the same directory. Delete that as well, restart, and you should be back to the default behavior. Open a file with the extension, select View -> Syntax -> Open all with current extension as... and select Java. This will create a new Packages/User/Java.sublime-settings file, so don't delete it!

like image 162
MattDMo Avatar answered Sep 08 '25 17:09

MattDMo