Do you know of a JS formatter that will support the comma-first coding style?
var a = 'ape'
, b = 'bat'
, c = 'cat'
, d = 'dog'
, e = 'elf'
, f = 'fly'
, g = 'gnu'
, h = 'hat'
, i = 'ibu'
;
So far, I've looked at JS Beautifier & SourceFormatX but couldn't find an option for it.
I modified the jsbeautifier code a little here:
http://jsfiddle.net/RabTN/29/
press
doit
to see the beautified code.I specifically modified line 1080:
and line 1123