On 4/16/06, Sy Ali <sy1234 / gmail.com> wrote: > As an aside, I was thinking of writing some kind of wrapper to help > with the colour functions in HighLine, so that I cound use strings > like this: Just to round off my comment in this thread... I did take some time to play with this colour markup concept, and I found an inventive solution. Unfortunately HighLine wasn't working at home so I got it working with ansicolor[1]. http://jrandomhacker.info/TRN_-_Projects/colourcodes Example of use: colour_codes("@rred @Rbold red\n") colour_codes("@ggreen @Gbold green\n") colour_codes("@bblue @Bbold blue\n") colour_codes("@ccyan @Cbold cyan\n") colour_codes("@mmagenta @Mbold magenta\n") colour_codes("@yyellow @Ybold yellow\n") colour_codes("@wwhite @Wbold white\n") colour_codes("@w") # A single colour code can be passed. colour_codes("@@an at symbol @xan invalid code can be optionally displayed\n") [1] http://term-ansicolor.rubyforge.org/