Console_Color provides methods to convert complete strings tagged with special markers into ANSI-compatible color code representations, and methods that directly return those codes for certain colors.
The method used most often is convert(). It takes a string, e.g.
3 out of 4 people make up about %r75%% %n
To reset the colors to normal, use %n.
Further, there is an escape() method that prevents special chars from being treated as markers.
Using strip(), you can remove color and style codes from a string.
<?php require 'Console/Color.php'; //make it blue print Console_Color::convert("%bHello World!%n\n"); //more colors print Console_Color::convert("%rred%n, %ggreen%n, %yyellow%n\n"); ?>