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 ...
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?
...
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?
...
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) {
...
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 ...
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?
...
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...