Sahand
Sahand

Reputation: 8360

Why are some lines white in my sublime text editor?

I'm looking at a JSON file in Sublime Text 3.

Almost all the lines of the file are yellow, except some that are white. Why are they white?

Here's what I mean:

enter image description here

Upvotes: 1

Views: 356

Answers (1)

Cerberus
Cerberus

Reputation: 246

It seems there is a hard limit of 16,384 characters for each line; longer lines are not highlighted. The developers of Sublime were afraid this would otherwise take too long, making editing less responsive. After all, the entire file needs to be re-analysed upon each edit (or at least the part from the active line onward).

Source.

Upvotes: 2

Related Questions