how can I disable percent(%) symbol highlighting in C syntax highliting? And by the way, what is it for?
The percent (%) operator in C and C++ is the modulus operator. It returns the first number mod the second number. SourceBut why it's highlights in strings, Idk, probably it's a bug.
It's highlighting the % because it's assuming that you're making a printf format string, and that you've made it wrong. Unfortunately there's no way to tell it it's not a printf format string short of changing the syntax file.
@ArtDesire, I was asking what is the percent symbol highlighting for, not what does percent symbol do .
Anyway, thanks. I've commented the value "invalid.illegal.placeholder.c" in C.tmLanguage on line 1116 and it's gone .