View Single Post
Old 06-21-2012, 03:52 PM   #393
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,044
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by deleyd View Post
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
Thanks. But now I have an error...

Code:
E:\E-Books\Sorted\Kindle\wsh.wsf(292, 18) Microsoft JScript runtime error: 'undefined' is null or not an object
Any idea what to do to fix this?
JSWolf is offline   Reply With Quote