Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: How to print colored word in text file

by Happy-the-monk (Abbot)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-11-26 04:34 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls