Atom highlights html code, but not the js kod between the script tags. In Ivans video, his Atom highlighted both, how do I fix this?
Did you put you JS between tags? If not, it will not work.
another thing: try saving the document.
Yes, I did. As you can see in the image, the js code is not highlighted. I guess it’s because Atom assumes html since it’s an html file.
Um, now it does highlight. I didn’t do anything, now it just works.
Hi @LaszloD Is everything working ok for you now?
Mine does the same thing. When you create a new html file in Atom, after writing the tags, just save it, and quit Atom. When you restart it, the syntax highlighting will work again.
I remember having a similar issue when I first started using Atom. Mine just sorted itself out too
Not ideal (especially for beginners) I know! To be honest, I’m not sure why it does that, but I’m glad you all seem to have sorted it.
Now it works fine. I guess I save and restart from time to time anyway, so that’s probably fixing this. No big deal though.
I just had same issue and it was fixed by restarting Atom even though the file was already saved as html file.
Thanka for helping out. I am sure someone will find this useful in the future.