I'm new to mac osx and I'm looking for a nice lightweight text editor for coding (javascript/java) and I think TextWrangler is close to being it. The only thing I haven't been able to figure out is if I can customize it to auto indent braces in my preferred style (K&R/KNF).
So I'd prefer it to auto-align the closing brace with the same amount of indentation as the first brace:
I'm wondering if I might be able to do it with a module or plug-in, or is it simple setup option I've missed? If TextWrangler can't do it, does anyone know of a lightweight editor (preferably free) that can ? Otherwise I might just go with emacs or eclipse.
So I'd prefer it to auto-align the closing brace with the same amount of indentation as the first brace:
Code:
[INDENT]function f () {[/INDENT]
[INDENT][INDENT]//function body...[/INDENT][/INDENT]
[INDENT]}[/INDENT]
I'm wondering if I might be able to do it with a module or plug-in, or is it simple setup option I've missed? If TextWrangler can't do it, does anyone know of a lightweight editor (preferably free) that can ? Otherwise I might just go with emacs or eclipse.