Hi,
how can I disable percent(%) symbol highlighting in C syntax highliting? And by the way, what is it for?
Hi,
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. Source
But 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 .