Skip to content Skip to sidebar Skip to footer

Atom - Html Code Turns Gray When Copying And Pasting (updated With Code)

I have this weird issue where when I copy and paste into my index.html file in atom, it makes the html code turn gray. This issue only happens when I copy and paste. It doesn't app

Solution 1:

Atom might not be recognizing the syntax of your code immediately as soon as you paste some new code and its colour seems grey. Check the bottom right corner of the screen to make sure the atom has the correct language/file extension selected. You can manually select this if atom doesn't it automatically recognises the code language. Try setting from Html to Html(Go) manually or whichever syntax it recognises.

Change the Code language manually

Also, the code turns grey if the file is not saved in the particular file extension.

Post a Comment for "Atom - Html Code Turns Gray When Copying And Pasting (updated With Code)"