View Single Post
Old 06-21-2012, 03:16 PM   #392
deleyd
Junior Member
deleyd ought to be getting tired of karma fortunes by now.deleyd ought to be getting tired of karma fortunes by now.deleyd ought to be getting tired of karma fortunes by now.deleyd ought to be getting tired of karma fortunes by now.deleyd ought to be getting tired of karma fortunes by now.deleyd ought to be getting tired of karma fortunes by now.deleyd ought to be getting tired of karma fortunes by now.deleyd ought to be getting tired of karma fortunes by now.deleyd ought to be getting tired of karma fortunes by now.deleyd ought to be getting tired of karma fortunes by now.deleyd ought to be getting tired of karma fortunes by now.
 
Posts: 3
Karma: 492042
Join Date: Feb 2012
Device: kindle
There's a separate program I use to "Beautify" HTML code that comes out all in one line.
http://prettydiff.com/
JavaScript is markup_beauty.js (I think)
which I run using this file named wsh.wsf (I'll attach it here. You'll need to rename it since forum didn't like my .wsf file but accepted a .txt file)

and the command line to run it is:

cscript wsh.wsf /source:"name_of_your_file.html" /html:true

(on Windows)

I'll attach the markup_beauty.js file too. (Again you'll have to rename it from .txt for the same reason.)

I'm not sure if markup_beauty.js relies on other files. If so they are at

http://prettydiff.com/documentation.php

[EDIT: It's not clear that the licences for wsh.wsf and markup_beauty.js allow redistribution. Attachments deleted. They can be download from the page linked above.

The Mods.]

Last edited by pdurrant; 06-21-2012 at 04:42 PM.
deleyd is offline   Reply With Quote