7

So, I'm new in Atom, and I noticed that when I use <script> in HTML, it won't highlight anything, I'd like to know if this is normal, and if it is, how to make Atom highlight JavaScript inside <script> tag within HTML?

enter image description here

4
  • 3
    This is really not an appropriate question for Stack Overflow. This is a question for forums about that product. Commented Feb 2, 2019 at 21:07
  • @charlietfl No, I don't mean the HTML, I mean highlight for javascript as it is, f.e. when I have separate .js file, atom highlights functions like require(), but in here it is just white, this is not about the string in javascript Commented Feb 2, 2019 at 21:09
  • Put it in a JavaScript file. Should highlight fine there Commented Feb 2, 2019 at 21:10
  • The magic is in the bottom right corner, change auto detect to javascript, please next time don't make @Scott Marcus repeat the words Commented Mar 26, 2019 at 7:29

2 Answers 2

24

Go to the settings core tab and uncheck Use Tree Sitter Parsers option. Should work without restarting atom.

Sign up to request clarification or add additional context in comments.

Comments

1

I had the same issues. The solution is to install a new theme. Minimal-syntax-dark

Comments

Your Answer

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