Re: writing to a notepad in perl
- From: RedGrittyBrick <RedGrittyBrick@xxxxxxxxxxxxx>
- Date: Fri, 30 Nov 2007 17:20:17 +0000
hymie! wrote:
In our last episode, the evil Dr. Lacto had captured our hero,
"rajendra" <rajendra.prasad@xxxxxxxxxxxx>, who said:
But there a way I can write a text file in fonts i.e some content in BOLD
letters and some in italised etc using perl functions.
First you have to choose a system for representing the formatting information. There are many.
#!perl
use strict; use warnings;
print "plain *bold* _italic_ in some viewers \n";
I'd search CPAN for more useful approaches.
The whole concept of a text file is based on it being text (that is,
unformatted).
I know what you mean, and it's pertinent since the OP mentions notepad, but I'd say "plain text" where you say "text". To me, Rich Text Format (RTF) is text too, though only just :-). Widely used MIME types like "text/plain", "text/rtf" and "text/html" tend to reinforce this idea.
If you include formatting information, then it is no longer a text file.
IKWYM but http://c2.com/cgi/wiki?TextFilter
--hymie! http://lactose.homelinux.net/~hymie hymie@xxxxxxxxxxxxxxxxxxxxx
------------------------ Without caffeine for 395 days ------------------------
Just a thought: if you change your "signature" separator to hyphen hyphen space newline then most newsreaders will recognise it as a "signature", display it differently and automatically omit it from replies.
Although minus minus space newline is (arguably) formatting information, your posting is still recognisably "text" :-)
.
- Follow-Ups:
- Re: writing to a notepad in perl
- From: RedGrittyBrick
- Re: writing to a notepad in perl
- References:
- writing to a notepad in perl
- From: rajendra
- Re: writing to a notepad in perl
- From: hymie!
- writing to a notepad in perl
- Prev by Date: Net::SSH::Perl security question
- Next by Date: Re: writing to a notepad in perl
- Previous by thread: Re: writing to a notepad in perl
- Next by thread: Re: writing to a notepad in perl
- Index(es):