Skip to content

Instantly share code, notes, and snippets.

@zml2008
Created December 29, 2011 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zml2008/1532677 to your computer and use it in GitHub Desktop.
Save zml2008/1532677 to your computer and use it in GitHub Desktop.
How to remember
Replace color macros in a string. The macros are in the form of `[char]
* where char represents the color. R is for red, Y is for yellow,
* G is for green, C is for cyan, B is for blue, and P is for purple.
* The uppercase versions of those are the darker shades, while the
* lowercase versions are the lighter shades. For white, it's 'w', and
* 0-2 are black, dark grey, and grey, respectively.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment