469,362 Members | 2,447 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,362 developers. It's quick & easy.

pretty printing HTML output?

Hi,

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

GŁnther
Jul 17 '05 #1
4 19769

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
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
inf not available at your host... try adding \n & \t manually. Rubish
but yet a solution.

Jul 17 '05 #4
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.

Similar topics

2 posts views Thread by Taare | last post: by
8 posts views Thread by Steve Macleod | last post: by
5 posts views Thread by David | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.