2012-05-17 08:22:12

mmelon
Member
delta

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

 

2012-05-22 12:24:30

etc
Plugin Author
mu
Real name: Oleg
Known languages: ru, fr, en, google.translate(*)
Website

Re: source code formatting

Maybe htmLawed or some other html purifier?


etc_[ query | search | link_to | pagination | date | url ]

Offline

 

2012-05-22 12:47:53

philwareham
Core designer
sigma
Real name: Phil Wareham
From: Farnham, UK
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

 

Powered by FluxBB