It's a better one than in
Arkshine's
Notepad++ AlliedModders Edition, or rather a "better fitting for
Pawn" one. Apparently it was originally made for
C++ indentation, so it automatically put the text to the beginning of the line once you used a colon (":"). I removed that function and recompiled the plugin.
You can find the source code for the original
NppAutoIndent here, I've just commented out this part:
PHP Code:
case ':': {
//start searching for case/public/private keywords
//Find the first keyword and compare
int i = 0;
while(lineBuffer[i] == ' ' || lineBuffer[i] == '\t')
i++;
int start = i;
char ch = lineBuffer[i];
while ( (ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z' || ch >= '0' && ch <= '9' || ch == '_')) {
i++;
ch = lineBuffer[i];
}
lineBuffer[i] = 0;
if (!lstrcmpA(lineBuffer+start, "case") || !lstrcmpA(lineBuffer+start, "default"))
return LineCase;
else if (!lstrcmpA(lineBuffer+start, "public") || !lstrcmpA(lineBuffer+start, "private"))
return LineAccess;
return LineLabel;
break; }
INSTALLATION: Exit
Notepad++, place the DLL into your
Notepad++/plugins folder, start
Notepad++, go to
Plugins → NppAutoIndent and select
Smart Indent.
NOTE: I haven't tested this with
Notepad++ AlliedModders Edition.