473,413 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 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 20122

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steffen Beyer | last post by:
Hi, my XSLT processes input documents which use various namespaces. Short example: XML input: <news:foo xmlns:news="http://some.example/news"/>
2
by: jaydog | last post by:
Hello... I'm new to XSL, and I've written a XSLT file that converts a XML file to HTML format. When viewed in a browser, it appears exactly as I would like. However, if I want to look at the...
2
by: Taare | last post by:
Hi, I got <xsl:output method="html" encoding="iso-8859-1" doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system=" http://www.w3.org/TR/html4/strict.dtd"/> in my XSLT file. This should remove...
4
by: DKode | last post by:
I have developed a custom server control that displays a login page that authenticates against AD. The server control works fine, but now I am trying to figure out the best way to output custom...
8
by: Steve Macleod | last post by:
Hi, I was wondering if anyone had a solution for printing HTML elements (especially style elements). I do not wish to make any changes to the page, other than in the <css media="print"block. I can...
3
by: kmsultan1 | last post by:
Hello all, I have a windows application that programmatically sends an html document to the printer using the AxSHDocVw.AxWebBrowser object. The application works beautifully. I tried to...
5
by: David | last post by:
All, Is there a pretty printing utility for Python, something like Tidy for HTML? That will change: xp=self.uleft+percentx*(self.xwidth) To:
2
by: Brian Simmons | last post by:
Hi, Long story short: I've got a website built, and we moved it over to the production server, which is an SSL-required (https://...) server. A third party component that I'm using makes use of...
0
code green
by: code green | last post by:
I am using the following to force a file dialog box to open header('Content-Disposition: attachment; filename="'.$filename.'"'); header('Content-type: text/csv');Then open a file stream with return...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.