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

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040090]
help
Chatterbox?
[stevieb]: I've finally added the ability for berrybrew to fetch the list of perls available directly from Strawberry's releases.json file. Instead of pulling from there on every single call, I've added a berrybrew fetch, so it's only updated..
[stevieb]: ...on request. There's some supporting work I need to do, as well as update the docs, but it's in the v1.12 branch if anyone wants to play with it...
[stevieb]: ...issue 62 will track what else needs to be done.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2017-03-31 01:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (364 votes). Check out past polls.