From owner-freebsd-questions Sun Jan 28 23:19:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pioneernet.net (pop3.pioneernet.net [208.240.196.25]) by hub.freebsd.org (Postfix) with ESMTP id 6D9C337B402 for ; Sun, 28 Jan 2001 23:19:20 -0800 (PST) Received: from wiegand.org [208.194.173.26] by pioneernet.net with ESMTP (SMTPD32-6.05) id AA0EBE03002A; Sun, 28 Jan 2001 23:21:50 -0800 Message-ID: <3A751A42.A8A8E27E@wiegand.org> Date: Sun, 28 Jan 2001 23:22:42 -0800 From: Chip X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 Cc: questions@freebsd.org Subject: Re: printing html/javascript web page mark-up References: <14965.4296.181757.227298@guru.mired.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I had no idea this would turn out to be such a big deal. Thanks to all the responses, there have been quite a few. Here are a few notes below... Mike Meyer wrote: > > Chip types: > > I am having a problem printing the mark-up I am > > writing for assignments. I am working on web pages > > that include javascript and html and would like to > > print the finished work, not the web page output. > > Define "finished work", would you? Do you mean the > html+Javascript source you wrote or the HTML generated by the > Javascript? I assume since you say "not the web page output" > you don't mean the results of loading the page in a browser. You assume correctly. When using an editor, as mentioned below, I just want to print the source I am writing. > > I have printed the work from gnotepad+, asWedit, > > vi, Bluefish 0.5 and from the command line, I get > > two differant printouts - one document.write line > > between the tags, or everything in > > one long line wrapped at the margin. > > I also saved one as a .txt file and it still only > > printed the one line in the section. > > I don't see any html to text converters listed in > > the ports. > > You didn't say what you were using to edit the text. What > options does that provide. Actually, the above mentioned apps are what I used, first vi, then tried to print from the command line, no luck. Then the various mentioned editors, all with the results as mentioned in the original posting. > > There must be a way to print all the mark-up used > > for a web page. > > lpr works fine, so long as you're not using a print filter that > recognizes the HTML and converts it automatically. In that case, > you need to defeat or reconfigure the filter. If the filter is the problem, defeating it is something I am not familiar with. I used apsfilter to set up my printer, it set up two filters during the install process. I tried both, the first won't print all the text in the above mentioned files, the second (raw1) does stair-stepping, so that may need to be fixed, but it started to print the actual mark-up that I wrote. This may be what I need to fix to print this stuff. -- Chip > -- > Mike Meyer > http://www.mired.org/home/mwm/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message