Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I am looking for some source package which will convert plain text file to html file without using perl. I mainly need to do this on an ARM platform, ...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    3

    plain text to html without perl

    Hi,
    I am looking for some source package which will convert plain text file to html file without using perl.

    I mainly need to do this on an ARM platform, so if I get sources I can cross compile it.

    Thanks in advance,
    Cheers,
    Jai

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    you need a plain text file, converted to HTML ..... I'm confused. I could understand doing the reverse, taking html and ripping the plain text out of it, but plain text doesn't contain the things you would need to populate the HTML data.

    Are you trying to make text files avaialble over HTTP??
    can you explain a bit more about your objective?
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Posts
    3
    my objective is to display a plain text in a browser. So I need to convert my plain text to html file to get it displayed in the browser

  4. #4
    Just Joined!
    Join Date
    Nov 2006
    Location
    near Berea, Kentucky (in a tipi)
    Posts
    34
    Have you tried displaying 'plain text' in whatever browser you're using? When I open a text file in Firefox or Konqueror, it displays perfectly.

    Worst case you could just add something like HTML BODY to the top and /BODY /HTML to the end. Something that simple could be scripted, or written in C if you must...

    Good luck,
    Daniel

  5. #5
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Quote Originally Posted by coool_guy View Post
    my objective is to display a plain text in a browser. So I need to convert my plain text to html file to get it displayed in the browser
    ? No, you don't. The browser will display a text file, as is. E.G. if your document root is /var/www/html, and you put a copy of /etc/hosts in it, http://server/hosts will display the contents as text.

  6. #6
    Linux Newbie previso's Avatar
    Join Date
    Jan 2010
    Location
    SC
    Posts
    115
    If all I want is a simple html page, Seamonkey. Easy to just drag and drop onto the blank page and it will automatically generate the code. There is a portable app version.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...