By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,409 Members | 1,524 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,409 IT Pros & Developers. It's quick & easy.

pretty printing HTML output?

P: n/a
Hi,

is it possible to have PHP pretty print the HTML output?

GŁnther
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

Guenther Schmidt wrote:
Hi,

is it possible to have PHP pretty print the HTML output?

GŁnther


php runs on the server, so if your server has a printer and you can
print anything there with php.

if you want your visitors to have nice prints of html pages, it is a
browser issue and got nothing to do with php at all.
have a look at css and the media attribute.

micha

Jul 17 '05 #2

P: n/a
On 2005-05-04, Guenther Schmidt <gu*********@web.de> wrote:
Hi,

is it possible to have PHP pretty print the HTML output?


As already mentionned, printing is usually not done by PHP. (Although
there is a Win32 printer extension i think http://www.php.net/printer)
But if you mean, clean up the PHP output, you might want to have a look
at the Tidy extension. (http://www.php.net/tidy)

--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Jul 17 '05 #3

P: n/a
inf not available at your host... try adding \n & \t manually. Rubish
but yet a solution.

Jul 17 '05 #4

P: n/a
On Wed, 04 May 2005 13:40:01 +0200, Guenther Schmidt <gu*********@web.de>
wrote:
is it possible to have PHP pretty print the HTML output?


A couple of pretty printers that I've got bookmarked are:

http://qbnz.com/highlighter/
http://webcpp.sourceforge.net/

First one is PHP, second's one's C so you'd have to spawn a process.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.