Lively discussions on the graphic arts and publishing — in print or on the web

Go Back   Desktop Publishing Forum > General Discussions > Web Site Building & Maintenance

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-18-2008, 05:29 AM   #1
CarlSeiler's Avatar
Join Date: Oct 2005
Location: Denton, TX
Posts: 276
Default PHP/HTML Pretty Printer

I'm surprised I haven't been able to find such an animal. What I'm looking for is something that pretty prints php but will also clean up (X)HTML. While I realize it may be a challenge for the embedded HTML inside the php, I'm thinking it wouldn't be all that difficult for a formatter to clean up HTML that's outside of the php tags.

My problem is that I can't seem to find something that does both. I've found HTML pretty printers that either ignore the php sections or place it into a long single line. I've also found php pretty printers that ignore the HTML or mangle it--for example, TIDY mangles everything because there's no header (it's created with a php include).

One solution might be to find two separate tools that do the least amount of damage, then run the file through in sequence. I've also considered cutting and pasting.

Luckily most of my code is readable--at least to me--but sometimes I just wish things could be straightened up a bit.

CarlSeiler is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML is Dead. Long live HTML. Five that is... CarlSeiler Web Design 3 07-30-2007 11:04 PM
XLS to HTML dthomsen8 Web Site Building & Maintenance 3 08-07-2006 03:53 PM
If you like HTML even a little... iamback Web Design 0 06-09-2006 12:15 AM
Semantic HTML? ktinkel Web Design 7 08-30-2005 11:50 AM
Help, Pretty Please? Franca Images 13 04-10-2005 03:34 PM

All times are GMT -8. The time now is 10:03 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Contents copyright 2004–2018 Desktop Publishing Forum and its members.