Now that I have Babel installed for my React development I noticed that when I open .html files the syntax highlighting is set to javascript (babel) instead of HTML. How can I fix this? Here are also a couple of images that might help. Also a little extra thing, I am using the Afterglow theme for sublime text, and how can I remove the annoying padding on the last image underneath the tabs? You can see a few pixels of space which really annoys me.
-
What I want is, that when I open an HTML file it has the correct syntax highlighting set to HTML and not javascript (Babel), and for the padding, it would be great to simply remove it.Valchy– Valchy2020-05-20 13:23:52 +00:00Commented May 20, 2020 at 13:23
Add a comment
|
1 Answer
You have probably overridden the default language settings for HTML files. You can verify this in the Syntax settings.
- Open the View menu
- Open the Syntax sub-menu
- Open the settings for HTML
If my assumption is true, edit (or delete?) the settings for HTML.
Otherwise, you can assign a syntax to an extension through the same menu.
- Open a HTML file
- Open the View menu
- Open the Syntax sub-menu
- Select HTML in the Open all files with current extension as… sub-menu
6 Comments
Valchy
Thank you, followed the steps and it worked perfectly. Had to restart sublime text though but it works now :D
Valchy
Any ideas on how to remove the padding underneath the tabs?
Valchy
Also, how can I make the text when I press
ctrl + r bigger? Any ideas?idleberg
I've never experienced that padding before. Maybe caused by a theme or package?
Valchy
Yes but isnt there a way to fix it?
|


