How can i change the color of a const char in c?

Viewed 34

I have some const chars in my code and i want it to have a color everytime i use the const char, but not in the whole printf. Here is an example of how i want the code to look only diffrence is that the COIN should be yellow.

#include <stdio.h>
const char COIN = '*';
const char BLOCK = '■';

int main()
{
 printf("COIN, BLOCK, COIN\nBLOCK, COIN, BLOCK\nCOIN, BLOCK, COIN\n");
}
0 Answers
Related