Mass Red Highlight Issue


#1

Hi all,

I’ve tried searching and doing some of the suggested tips but am not sure those tips were for my problem or not. I went to open my project a few days ago and noticed a ton of my project was not highlighted in red. It starts at a seemingly random point and from that point about 80% of the code on the page is highlighted. It’s only this one document too. The rest of the files in the project seem to be unaffected. Any idea what could be causing this?


#2

It’s not random. The highlight starts after a ' character. This probably means that some package is expecting every unescaped ' to be closed with another one. You can test this by placing another ' on the same line as the first.

What language does Atom say the file is? The language appears on the right-hand side of the status bar. Please also share a list of the community packages you have installed (you can find them in Atom, or by going into the command line and using apm ls).


#3

That would make sense and also appears to be what is happening. It starts and ends at every apostrophe. Atom correctly identifies the language as HTML.

I have atom-beautify, tool-bar, tool-bar-main and tool-bar-almighty installed. Tool-bar-main is disabled, though.


#4

I’m going to guess you have some embedded <style> tags further up the file?


#5

I do not. I have a separate file for my CSS


#6

Can you upload the whole file so that we can take a look at it?


#7

I’ve never used this site to share files so hopefully this is kosher: https://ufile.io/3e3f2


#8

Also please ignore the actual content of the page and how random it is. It’s basically a dummy page for practicing various new concepts I’m learning in my HTML5 class lol. It’s not supposed to be pretty or make sense.


#9

I opened it in my Atom and am seeing no highlighting at all.


#10

Interesting… So maybe there’s an issue with my app rather than with my code… hmm


#11

Anyone found a fix? also having this issue.


#12

Please provide more information. We need to see what you’re seeing. The more data we collect about when and where this happens, the better a chance we have of figuring out what’s up.


#13


seems to have suddenly highlighted. finished work on this file a few months back with no issues like this but i came back to it for reasons and this is what i found.

http://prntscr.com/eupc8i list of community addons


#14

It’s really weird that the highlight stops in the middle of the sentence. Since I can’t see the full width of the lines, can you confirm that the only single-quotes are the ones around the lines? Does it appear if you try to assign each of those values individually? You can try breaking it apart like this:

var textArray[0] = '...'
var textArray[1] = '...'
var textArray[2] = '...'
var textArray[3] = '...'

#15

11 posts were split to a new topic: Incorrect syntax highlighting in an ASCII document


#16

Weird that this happens inside of html text areas… Seems like it would be ignored if inside a paragraph tag, etc.