Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: How to print colored word in text file

by Happy-the-monk (Canon)
on Jun 21, 2013 at 07:06 UTC ( #1040090=note: print w/replies, xml ) Need Help??

in reply to How to print colored word in text file

red color in a text file

Colour as in coloured text is some kind of formatting.

Text files are understood as to contain text, but no such formatting.

So the answer is you don't. In order to colour text, you need an output format that can colour text like some rich text format or html. Do you have something in mind already?

Cheers, Sören

(hooked on the Perl Programming language)

  • Comment on Re: How to print colored word in text file

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040090]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2018-05-24 03:28 GMT
Find Nodes?
    Voting Booth?