472,146 Members | 1,389 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

pretty printing HTML output?

Hi,

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

Günther
Jul 17 '05 #1
4 19994

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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.