TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using TeXnicCenter and MiKTeX 2.9. This problem has never happened to me before, please refer to the images I attached below. Essentially out of no where, my text became pink, although everything still works fine (except TeXnicCenter now doesn't highlight corresponding brackets), I am wondering how to get rid of this pink text and why does it happen?

EDIT: I realised the pictures may be too small to see on here, it'd be best to save them onto your computer as that makes it visible.

enter image description here enter image description here enter image description here

share|improve this question
Not related to the question just an observation: Why is the chunk of code so big on line 65? You can hit return to break up the long code lines instead of just typing until the code wraps and it wont mess up the code. – dustin Aug 8 '13 at 17:05
@dustin True, I should have split it up, I guess I didn't feel the need to heh. – TrueTears Aug 8 '13 at 17:17
Please add the TeX code into your question. Then I can copy it and check it with my TeXnicCenter ... – Kurt Aug 8 '13 at 17:57
Note @dustin — syntax highlighting stopped near the end of the line. Related?? – Sean Allred Aug 8 '13 at 18:12
@Sean Allred I hand wrote this myself. The reason I didn't line break was because I used to run into errors and things whenever I line-breaked during an align environment, so I got into the habit of not doing it. Anyhow, it seemed like the reason was because line 65 had too much codes stuffed into one line, after doing a few line breaks, it resolved the issue. – TrueTears Aug 9 '13 at 5:48
up vote 5 down vote accepted

Without an MWE it is literally impossible to tell, but this looks like a small bug in TeXnicCenter. I believe breaking up your lines into smaller segments will fix the issue. The pink is likely the color the developers used to indicate that something has gone wrong (in this case, a buffer overflow is likely). This would also explain the missing functionality to match braces; if the length of your line has crashed the syntax parser, then there is no reliable way for TeXnicCenter to tell which brace matches which where, and so it simply doesn't try (in an effort not to lie).

Since this is math mode, single linebreaks are not significant (unless, of course, you break at a control sequence (in blue)). Insert a few line breaks, and maybe try to make the source more readable if you can or want to. (I'm assuming this is a software-generated TeX fragment.)

As you're going through, if you so desire, you may also want to take a look at

share|improve this answer
Thanks, I will take on board your suggestions. Adding a few more line breaks resolved the issue :) – TrueTears Aug 9 '13 at 5:50
Glad to hear it—and I'm sure the developers would be glad to hear this, too (if they have a way to report bugs) – Sean Allred Aug 9 '13 at 11:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.