MCPcopy Create free account
hub / github.com/WheretIB/nullc / ColorCode

Method ColorCode

Colorer.cpp:806–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804}
805
806void Colorer::ColorCode(int style, const char* start, const char* end)
807{
808 unsigned int cpMin = (unsigned int)(start - ColorerGrammar::codeStart);
809 unsigned int cpMax = (unsigned int)(end - ColorerGrammar::codeStart);
810
811 if(errUnderline)
812 ColorFunc(richEdit, cpMin, cpMax, COLOR_ERR);
813 else
814 ColorFunc(richEdit, cpMin, cpMax, style);
815}

Callers 1

operator()Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected