Programming :: Printing HTML Content As Plain Text?

Sep 16, 2009

My code perl code is as below.I want to print the contents of file "/dir/Myfile".But problem is that the file "Myfile" contains html content as below.

<TP_INFO> <Mail> </Mail> </TP_INFO>

So the IE treats it as HTML content and doesnt print the content present in the tags.Can any one help me to print HTML content as plain text?

sub PrintLog
{
print "Content-Type: text/plain
";

[code]....

View 4 Replies


ADVERTISEMENT

Fedora :: F14 Gnome Text/plain Versus Text/html File Type

Apr 2, 2011

I put a text file on my desktop and added a couple lines of text with gedit. File type shows text/plain. Double-click opens the file in gedit which is what I want. I'm using the file to temporarily hold some snips of code that I copy from file to file, but when I copy some html into the file and save it, now file properties show it's text/html and a double-click opens the file in firefox, which isn't what I want. Is there some way to keep the file type from changing itself?

View 6 Replies View Related

Red Hat / Fedora :: HTML To Plain Text Converter In C?

Jul 27, 2010

I am looking for some source package which will convert html fileto text file without using perl.I mainly need to do this on an ARM platform, so if I get sources I can cross compile it. I need the source package in C

View 4 Replies View Related

Ubuntu :: Can Force Evolution To Print Plain Text Instead Of HTML

Sep 27, 2010

When I print receipts from certain company's emails, they span three pages or more bloated with images, links and overly large text. I can view the message in plain text by setting the preferences to only display text instead of html, but it doesn't affect what is printed. I still get the full HTML page printed. Is there a way to force evolution to print in plain text instead of HTML?

View 3 Replies View Related

Red Hat / Fedora :: Convert Plain Text File To Html File Without Using Perl?

Jun 9, 2010

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.

View 5 Replies View Related

Programming :: BASH Scripting: Hide Plain Text Passwords

Jun 15, 2010

I was wondering if there is way to hide passwords in bash scripts. For example: I have to write a script to export a full ldap structure, and I'm using the ldapsearch -y passwordfile, where password file is a plain text file that contains the password. Is there a way to hide the password from that file?

I was thinking to remove the r attribute from the file and before the script is lunched to put the attribute back, but is not a good solution, the same with immutable attribute.

View 7 Replies View Related

Programming :: Decrypt Some Plain Text Which Was Encrypted Using The Function Crypt()?

Jan 4, 2010

Is there anyway to decrypt some plain text which was encrypted using the function crypt()?

View 3 Replies View Related

Programming :: Add HTML Formatting To Text File?

Jun 30, 2010

I need to extract som text from a text file. The text is a test log with system info at the top and results further down. What I need is to add different tags with formatting before and after each line. I have prepared a template with html formatting, but the number of lines in the test log may be different from case to case, so I need to be able to add formatting tags by need. Can this be done using bash script, sed, awk, head, tail... ?

View 4 Replies View Related

Programming :: Helios : Using Tab On Text Field Having Content Proposals, Crashes Application?

Sep 8, 2010

Using content proposal in helios, giving problem if u press tab. Below is the error. For recreation snippet is provided(taken from 2 sites) after error log.Only u need to press tab while proposal pop up is visible & then point mouse at client.

#################################ERROR LOG#############################
# A fatal error has been detected by the Java Runtime Environment:
#

[code]....

View 9 Replies View Related

Programming :: Script To Create Simple HTML From Text File?

Oct 1, 2009

I am working on a script to convert a comma seperated text file into html code line by line. The text file is like so:

Code:

link url, image url, description and I want it to output this:

Code:

<td><a href=�link url�><img src="image url" alt=�description" /></a></td>

Here is what I have so far:

Code:

#!/bin/bash
var1='<td><a href=
var2='><img src="'
var3='" alt=�thumbnail image" /></a></td>'

[code].....

It puts the entire line into the html so its no good. I'll probably need to use awk (I think).

View 5 Replies View Related

Programming :: Printing Text From An External File In C?

May 24, 2010

I was reading through the source code of adventure in the bsdgames package and I had noticed that most of the text is read from a file called glorkz. I'm wondering about what function/technique the author used to print from the file; I've been looking through the code for a while (particularly io.c) and I haven't been able to figure it out.

View 3 Replies View Related

Ubuntu :: ODT To Plain Text Through Terminal

Jan 7, 2010

I've been using openoffice.org a lot recently and I was hoping that I'd be able to cat the contents of the file solely through the terminal.What's the best way to do this? My thought is to use a command in a terminal to convert to plain text and cat the file.

View 2 Replies View Related

Ubuntu :: GPG Encrypt As Plain Text?

Jan 16, 2010

With the gpg command I used to encrypt files so they saved as plain text (the encrypted files were viewable in a plain text editor though were a encrypted nightmare)

I just forget the option in the gpg command to do this and I can't find it in a hurry either in the man file

View 6 Replies View Related

Ubuntu :: Application For Formatting Plain Text?

Jan 14, 2010

Does anyone know of a application that will use plain text, but allows the customizatino of width and lenth of the number of characters?

Looking to set my footprint to be 78 characters wide (by) 59 characters high.

View 2 Replies View Related

OpenSUSE :: Copy - Paste - KMail - Not Only The Marked Text Will Be Pasted But A Kind Of HTML Code Including The Text

Jan 10, 2011

since some days I have a strange problem with KMail (1.13.5) in KDE4.5.5. When I try to copy some text from an email and past it to any other program (e.g. Openoffice), not only the marked text will be pasted, but a kind of HTML code including the text.

This bug is not OpenSuse specific. I found the same bug in a Fedora mailing list (of course, whithout an answer): Strange Copy/Paste behavior in KMail 1.13.5/Kontact 4.4.8

View 6 Replies View Related

Ubuntu :: RDP Extensions And Plain Text File Types

Jul 15, 2010

Basically, I have a selection of .rdp shortcuts to various machines, but they are considered the file type "plain text document (text/plain)" so if I change it to open with to tsclient, all of that file type opens with tsclient. And if I change it to gedit, all the rdp files open with gedit. Is there a way to create a custom file type dependent on the extension rdp, or is there a way to set tsclient to open by extension rather than filetype?

View 2 Replies View Related

Ubuntu :: All Files Show As Type Plain Text?

Apr 14, 2011

I somehow managed to screw up my lucid lynx system so that all files show up under Nautilus properties as Type Plain Text. When I double click a file, any file, the system tries to open it as plain text with gedit. Everything worked correctly until yesterday when I tried to install a new version of PyQt4. If I reboot with an old (karmic) version of Ubuntu and bring up Nautilus Properties on the same file (my data partition can be opened in other OS's) the files show up with the correct file type (PDF, ODT, etc) So the problem is not in the file itself, but rather in the lucid OS, which is mis-interpreting the file type. As I said I somehow messed it up when installing the new version of PyQt4.

View 7 Replies View Related

General :: Cannot Run CGI On Apache - Get The File In It's Plain Text Format

Jan 31, 2011

I'm trying to run a CGI file with Apache2, but when I navigate to it, I just get the file in it's plain text format and not actually parsing the file. What do I need to configure?

I've tried this Code: <Directory /var/www/>
AddHandler cgi-script *.cgi
Options +ExecCGI
</Directory> And I've tried this Code: <Directory /var/www/>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
[Code]...

View 1 Replies View Related

General :: Line Numbers To Html In Mixed Content?

Aug 21, 2010

I have huge files, wherein some lines begin with a number. I want to convert that number to a bookmark link

Sample file:

Code:

C.S. Lewis (I think) wrote:

1 If war is ever
2 legal, then peace
3 is sometimes
4 sinful.

Text without numbers toom I need the numbers to be <a name tags where the id is the letter x and the number that is at the beginning of the line:

Code:

C.S. Lewis (I think) wrote:
<a name="x1">1</a> If war is ever
<a name="x2">2</a> legal, then peace
<a name="x3">3</a> is sometimes
<a name="x4">4</a> sinful.

Text without numbers too I'm not sure why I can't get this, but after hours of 3 line long seds and endless while read lines, grepping ^[[:digits:]]s I can't figure it out.

View 3 Replies View Related

Ubuntu :: Remove Duplicate Lines In Plain Text File?

Apr 14, 2010

i have a big file of random numbers i generated at some point in time, after working with it with different things(how fun that was)... i want to remove duplicate lines and i'm not sure i'm doing this right

heres the command

Code:
sort random.txt | uniq -u > rand-shorter.txt

the file is pretty big, everything on a new line. i found the command on a web site so i'm sure its correct(bit of a command line in linux newbie)

can anyone confirm if this will remove lines duplicate lines (keeping one copy) and dump what is left in a file named rand-shorter.txt?

EDIT: i think its actually working, just taking a reallllly long time (on an old pen 4 from 2000)

View 8 Replies View Related

Software :: Removing Line Terminators From A Plain Text File?

Jul 31, 2010

Linux kernel 2.6.21.5, Slackware 12.0.

I would like to know if it would be easy for me to get a program which, given a plain text file as input, discards the line separators and writes the rest as its output. And let's put in the case of a file that has been mangled to the point of having CR,LF (carriage return, line feed) in some places, only CR in others, and only LF in still other places. That is, the three possible combinations used in systems as a newline char (the 1st is, or was used by m$- dos, the 3rd one by Unix and I know systems where CR is the line terminator).

After all, all the program has to do is, every time it finds a char belonging to the set {CR, LF}, cast it away.

View 11 Replies View Related

CentOS 5 :: Dont Have Permisions To Edit Plain Text File ?

Jul 24, 2009

I dont have permisions to edit plain text file.

When I run:

View 2 Replies View Related

Debian Configuration :: Cron Sending Emails With Plain Text Password?

Sep 5, 2011

Since we switched our server to Squeeze, I'm receiving emails from the cron about a mysql error (...can't use locks with log tables). But this is not the issue I want to talk about here. The issue is that since the executed command is: /usr/bin/mysqlcheck -uroot -pmypassword --all-databases --check-only-changed --silent which is a command that was automatically added to the cron by the mysql package (I believe), the password is sent in clear text in the email's subject. In my sense, this is a serious security issue (sending root password in email subject...)

I don't know at what level it should be corrected, but it seems to me like it should be corrected in the Debian distrib, shouldn't it ?

And for now, how can I hide the password in the emails I receive ?

View 1 Replies View Related

Ubuntu :: Plain Text File - Enable The Zoom Button On The Keyboard

Mar 21, 2010

I just downloaded a Plain Text File that contains (what appears to me as) code that will 'unlock' functions of my MS keyboard, now what do I do with it? Here is a preview of some of the contents of the file from the beginning of the text.

[Code]....

.....and so on with different items. My goal in doing this was to enable the zoom button on the keyboard.

View 1 Replies View Related

Software :: Printing Pdf,doc And HTML With Cups?

Apr 27, 2010

Using Debian Lenny.Using CUPS and lp. I would like to know how to print files from Openoffice such as doc files, pdf and html. I know I can print from the applications, but sometimes I want to print using lp or xpp. I would like to also set the font size on pdf or html pages before I print. I never know what size of print I'm going to get. Can I chose the font I want to use in text files with Cups?

View 1 Replies View Related

Programming :: Client Side To Include HTML Within HTML?

Sep 12, 2009

what is the best way (i.e standard way that is supported on all browsers and probably as well followed by web crawlers).... to include an html file either locally or externally in another ? Of course , i've done the research and i also know that there are server side includes (php , asp ...you name it) at the moment , i'm using this:

Quote:

<script type="text/javascript" src="path to file/include-file.js"> </script>

however, i've been warned that this method may not show up in some browsers as some tend to ignore this tag and that crawlers like your favorite search engine wouldn't bother reading this. so , what is the best and safest way to do the job? and btw , the reason why i've ousted SSI's from the start is because of among other things:

1) the fact that the included file is static html and because the text is included pretty much everywhere

2) hoping to reduce load time as the code (if successfully recognized) would hopefully be treated like any other embedded external file (e.x like an image) , therefore it would be cached without the need to downloaded it over and over again for each new page on the site.

View 1 Replies View Related

Ubuntu Servers :: Apache2-svn Mime - Tell Apache To Treat Script Files As Plain-text?

Apr 5, 2010

I've got an apache-svn server up and running fine but I'm struggling with an irritating problem. I need the apache server to display .vbs, .cs., vb., .sh, .pl., .c, .h, .cpp, etc, etc files in the browser. Whenever our users click on a script they get a download dialog instead of the script being displayed in the browser as plain/text. I have added:

Code: AddType text/plain .vbs Into /etc/apache2/mods-enabled/mime.conf but it seems to be getting ignored. how I can tell apache to treat script files as plain-text?

View 1 Replies View Related

Server :: SVN - Password File For Svnserve Encrypted Rather Than Store The Usernames / Passwords In Plain Text?

Apr 23, 2010

Is it possible to have the passwd file for svnserve encrypted, rather than store the usernames/passwords in plain text?

View 3 Replies View Related

Ubuntu :: Pidgin "paste As Plain Text" Set To Default

Sep 9, 2010

where the file is that allows me to change CTRL+V in Pidgin from "paste" to "paste as plain text"? According to a changelog, it should be possible somewhere. I've seen about five different files referenced on various forums, but haven't been able to locate any of them on my computer.

Another thread mentioned appending the following bit of code to the gtkrc file:

Code:
bind "<ctrl>v" { "paste" ("text") }

I found the file in /user/share/themes/Default/gtk-2.0-key/.When I open this file, it's empty. I added the code there, but it didn't work. The only other locations I found that file were in the other theme folders, but I use the default.

I'm running Ubuntu Netbook Remix v9.10, and the latest build of Pidgin (2.7.3).

View 1 Replies View Related

Programming :: Implement Inheritance An Polymorphism In Plain C?

Mar 20, 2009

how to implement inheritance an polymorphism in plain C. Most of them do this through function pointers.However I'd like to support multiple inheritance.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved