0

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.

enter image description hereenter image description here

enter image description here

1
  • 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. Commented May 20, 2020 at 13:23

1 Answer 1

1

You have probably overridden the default language settings for HTML files. You can verify this in the Syntax settings.

  1. Open the View menu
  2. Open the Syntax sub-menu
  3. 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.

  1. Open a HTML file
  2. Open the View menu
  3. Open the Syntax sub-menu
  4. Select HTML in the Open all files with current extension as… sub-menu
Sign up to request clarification or add additional context in comments.

6 Comments

Thank you, followed the steps and it worked perfectly. Had to restart sublime text though but it works now :D
Any ideas on how to remove the padding underneath the tabs?
Also, how can I make the text when I press ctrl + r bigger? Any ideas?
I've never experienced that padding before. Maybe caused by a theme or package?
Yes but isnt there a way to fix it?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.