0

Sublime text setting HTML as JavaScript

I mainly use Sublime text to code, but the other day I clicked on the button next to "Tab Size" on the bottom right of the application, just to see all the languages.... Now it reads all my .html files as .js files and i have to change it back each time i decide to code html with sublime text (note: .htm extension was not affected, but i just prefer using .html instead)

30th Sep 2019, 11:14 AM
Stephen Van Der Westhuizen
Stephen Van Der Westhuizen - avatar
2 Respuestas
0
Somewhere in the bottom corner of the sublime text is showing which language is set in the file, in your case, look for where JavaScript is written in the bottom corner of the program inside your file and click it to reconfigure it to HTML again.
30th Sep 2019, 11:20 AM
Wardy Spirit
Wardy Spirit - avatar
0
Yeah, but I need to do that every time I open an .html file in Sublime Text, I tried reinstalling it, but it kept the setting as well :( I want it to be the way it was before
30th Sep 2019, 11:54 AM
Stephen Van Der Westhuizen
Stephen Van Der Westhuizen - avatar