u say u write ur personal os. great intention!
"where is troubles with code which not colorring C code",- the troubles in the code. u have to have yr terminal emulator and shell. u must code it yourself or take from sombady.
meanwhile, check dokumantutaon for your os, term and shell. you will cee this in a text, what is a way to display text for your os, shell, term.
to help a people to cee and help, please specify what os, term and shell u do now. i mean not uo os, but os where yu typ. you can update tags of qustion to reflect and narrow question.
i will update answer, but we kbow specifics is gut.