LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-07-2009, 02:06 PM   #1
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
plain text to html convertor app for Linux??


Is there such an app that converts plain text to HTML "automagically"??
 
Old 04-07-2009, 02:11 PM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
How plain is the text? There are a number of scripts that convert various text to HTML such as rtf2html pdf2html, etc. If your text is truly "plain" though I would think you could just wrap some basic html code around it and call it good?

-Chad
 
Old 04-07-2009, 02:16 PM   #3
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
'cepting I don't even know basic HTML yet?!
It's just plain text-just need to save it as HTML so it's formatted right, etc.
Can you help?
 
Old 04-07-2009, 02:22 PM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Sure,

Here's a little HTML primer too:

Just for sexiness, start and end all your pages with <html></html>

To create paragraph separations, use <p></p>

Since it's all just plain text you don't need to worry about markup, but keep in mind that most of the beautifying of your document should be controlled through CSS instead of the available HTML markup options (like bold, widths, tables, etc).

Here's an example:
Code:
<html>
<head>
<title>My awesome webpage</title>
</head>
<body>
<p>Some great paragraph about the amazing woman I met and fell in love with</p>

<p>Some paragraph about the wonderful life we lived together</p>
</body>
</html>
That's a very basic idea anyway. The skeleton should be relatively close to what you need:
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>

HTH

-Chad

Last edited by MasterC; 04-07-2009 at 02:23 PM. Reason: code tags
 
Old 04-07-2009, 02:25 PM   #5
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
Your the Man-awesome-Thank you!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
plain old text editor autophil Linux - General 9 08-12-2007 09:46 PM
LXer: CLI Magic: Making HTML, manpages from plain text with AsciiDoc LXer Syndicated Linux News 0 12-04-2006 06:21 AM
CMS for plain text rblampain Linux - Software 3 12-14-2005 11:40 PM
convert html emails to plain text emails andredude Linux - General 6 03-20-2005 01:33 PM


All times are GMT -5. The time now is 07:52 AM.

Main Menu
Advertisement
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 Google+: linuxquestions
Open Source Consulting | Domain Registration