Auto-Indent for parentheses and operators?
Submitted by Sunday, 12 September, 2004 - 22:08
on
Is there a way to get jEdit to auto-indent using certain characters on the previous line as a guide? E.g. not having to press tab or make leading spaces while typing:
jEdit seems cooler than emacs, though, so it would be nice if there was a way to get it to do this! It would save a lot of time for me...if it's not possible now, would this sort of thing be possible with a plugin?
if(a == b && a == c && b !=c) cout << "Oh my god, " << endl << "this makes no sense!" << endl << ((1 + 2 + 3 + 4 + 5 + 6) / 20.0) << endl;emacs does some of this in it's c++ mode: '<<' automatically aligns with the first '<<' on the previous line, and anything after an unmatched '(' auto-aligns with the character after that '('. Or maybe you have to press tab to prompt it, but then it automatically finds the correct place to put it.
jEdit seems cooler than emacs, though, so it would be nice if there was a way to get it to do this! It would save a lot of time for me...if it's not possible now, would this sort of thing be possible with a plugin?