autoindent

Notepad++: disable auto-indent after empty lines

I find the autoindent style of Notepad++ a little weird: when I am typing on an indented line, I do want it to indent the next line after I press Enter (this it does properly). However, when I am on an empty line (no indentation, no characters) and I press Enter, it indents the next line, using the same indentation as the last non-empty ...

eclipse: autoindent for xml (particularly build.xml) files?

I really like Eclipse's autoindent feature for .java files, but when I hit Ctrl-I with build.xml open, it just erases the selection. Is there any way to get autoindent for .xml files working in Eclipse? ...

How do you enable file specific tab indent settings in VIM?

I believe there is a method to write a comment in a file that vim will use to override default tabbing and indent values. Can someone point me to information about this feature and how to use it? ...

Javascript indentation in VIM

I'm trying to get VIM to indent Javascript with the '=' and related commands. When I try to auto indent the following, for example: new function($) { $.fn.setCursorPosition = function(pos) { if ($(this).setSelectionRange) { $(this).setSelectionRange(pos, pos); } else if ($(this).createTextRange) { ...

vim phpdoc multiline comment autoindent

Suppose I have a comment block like this: /** * comment * comment * comment */ And when I open a new line inside this block I want vim to start it with /** * comment * _ * comment * comment */ but autoindent in standard (ubuntu) vim scripts starts an empty line, like this: /** * comment _ * comment * comment */ Is ...

How can I tell emacs how the arguments to my elisp function should be indented?

I have written function (actually a macro, but whatever) that works similarly to progn. How can I tell emacs that this function should be indented in the same way as progn? ...

How can I make emacs' cperl-mode indent all statement continuations by only one level?

In emacs' cperl-mode, lines that continute a statement from a previous line are indented by one level: my $var = (1+1) * (2+2) / (3+3); However, if the statement does not begin at zero indentation because it is inside a block, then if you break your statement onto a third line, you get another level of indentation, and so on: s...