Search code examples
htmlsublimetext3

Why was the code in the Sublime Text 3 painted white?


I work with someone else's code. The code is very simple and correct, but for some reason, a small piece of code was painted by an editor in white, and not as usual. Does anyone know in which cases Sublime Text 3 colors the code white?

Sublime Text 3


Solution

  • Sublime Text doesn’t apply syntax highlighting to lines starting at 16384 characters. All of that white text you see is a single line in the source, wrapped for display.

    This limit isn’t configurable and you can’t necessarily reformat the HTML without changing what it represents, but if you just wanted to know why – that’s it. :)