This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Editor formatting disappeared from only one source file



I've been working in CCS 6 on this code for a couple of years and have never seen this problem.

One of MANY files lost its syntax colors, font formats, etc.  All the other files are still OK, just this one.

I saw a very similar  post from May of 2013 entitled, "CCS 5.3 : All Color syntax disappeared on one of my source files (myfile.c) !!", but the solution didn't work for me.

How can CCS discriminate this one file?  If I replace it with an older version of the same file, the formatting is fine.  I can't see any changes in the code that would explain it.  In fact, the only difference between yesterday's file (the one that is formatted correctly), and today's file (missing color and text formatting), is a conditional comparison added to one if() statement to turn off a bit of code.  When I take the non-formatted file and change the code to perfectly match the formatted one, it still doesn't show formatting.  Are there file properties that I'm not seeing?

After deleting the offending source file and then 'Adding' the same file back in, the formatting was fine.

Any ideas what happened?