Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How to print colored word in text file

by pvaldes (Chaplain)
on Jun 22, 2013 at 09:24 UTC ( #1040263=note: print w/ replies, xml ) Need Help??


in reply to How to print colored word in text file

I need to do this for windows and linux

use Term::ANSIColor qw(:constants); print BOLD, RED, "ERROR!! Muahahahaha!!!\n", RESET; print "I'm fine now, thanks\n";

Note: Term::ANSIColor comes with the perl-modules package in Debian, replacing the old libansicolor-perl package

in a text file

See. i.e. Latex \usepackage{color} and use perl to print the latex command to an outfile.tex, then convert outfile.tex to outfile.pdf with pdflatex


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040263]
help
Chatterbox?
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: (14)
As of 2015-07-03 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls