Use this page to discuss script 2727 jsbeautify: javascript source code formatter
- Add constructive comments, bug reports, or discuss improvements (see the guideline).
- Do not document the script here (the author should do that on vim.org).
- This page may be out of date: check the script's vim.org page above, and its release notes.
Fixes
I have problem with numbers like 2e-9
=> 2e - 9
so I made a little fix at http://gist.github.com/491988 (uncommented lines with fixed regexp).
Comments
To use 2 spaces instead of a tab for indenting. Change line#295 to => let s:opt_indent_char = " "
function(){alert(a);}
- --April 6, 2012
- What is the above for? Perhaps remove that comment? JohnBeckett 03:54, April 6, 2012 (UTC)