LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-13-2004, 11:32 PM   #1
randomx
Member
 
Registered: Feb 2003
Location: Hawaii
Distribution: Debian
Posts: 130

Rep: Reputation: 15
Unhappy italics and underlined text on PERL


I just want to write a simple reference/book keeper, like if entering author, year, publisher, and so on...then do a search, then the programs spits the ALL items found in APA style.

Does anyone have a sample code to write/search/retrieve to a flat text file with some of the records in italics and some other records underlined?

I'm sure you can do it in PERL but I don't know how to do the italics/underline part of the field content.

I'm looking for a quick and dirty solution. Any ideas are welcome. I'll post the final code.

Thanks,
Randomx
 
Old 03-14-2004, 04:23 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,198

Rep: Reputation: 76
maybe u need sth like RTF:Generator from cpan? the ususal print functions in perl don't support that as far as i know. but maybe someone else knows better ;-)
 
Old 03-15-2004, 12:01 AM   #3
randomx
Member
 
Registered: Feb 2003
Location: Hawaii
Distribution: Debian
Posts: 130

Original Poster
Rep: Reputation: 15
actually.....

I gave it a shot in Java....it works great.

It would be nice to know the trick in PERL though. Oh well.

randomx

Code:

import java.io.FileWriter;
import java.io.PrintWriter;
import java.io.IOException;
  
 
public class Foo
{
public static void main(String[] args) throws IOException
{
PrintWriter out = new PrintWriter(new FileWriter("myFile.html"));
out.println("<u><i>my output</i></u>");
out.flush();
out.close();
}
}
randomx

Last edited by randomx; 03-15-2004 at 12:08 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl text menu system toolshed Programming 3 04-26-2011 07:35 PM
What does underlined mean in man pages oneeyedelf1 Linux - Newbie 1 07-28-2005 03:47 PM
perl question: text editing feetyouwell Programming 2 03-14-2005 02:19 PM
inputing text in perl rob0t Programming 3 08-03-2004 10:29 PM
op.off. wrong lang at Bold-Italics buttons vzzt! Linux - Software 0 02-27-2003 12:06 PM


All times are GMT -5. The time now is 04:40 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration