Textpattern Forum

You are not logged in. Register | Login | Help

#1 2012-05-17 08:22:12

mmelon
Member
Registered: 2006-03-02
Posts: 64

source code formatting

Hi,

does anyone have any solutions for source code formatting the php output before delivering to the client?

It would be cool if I could strip out html comments, trim whitespace and just generally tidy up and format the code so that it looks nice in the source code view.

Any ideas?

Mike

Offline

#2 2012-05-22 12:24:30

etc
Plugin Author
Registered: 2010-11-11
Posts: 1,061
Website

Re: source code formatting

Maybe htmLawed or some other html purifier?

Offline

#3 2012-05-22 12:47:53

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 1,520
Website

Re: source code formatting

Google’s mod_pagespeed apache module can do that. You need to have access to your web server in order to use it, and of course it needs to be running on Apache.

Offline

Board footer

Powered by FluxBB