stackoverflowpro
stackoverflowpro

Reputation: 438

notepad++ and nppautoindent

I have installed the nppautoindent plugin into the notepad++ editor. I see no autoindenting effect. I am using PHP. Can some one help me get this to work?

Thanks

Upvotes: 5

Views: 8979

Answers (1)

Malice
Malice

Reputation: 3977

What version of Notepad++ and NPPAutoIndent are you using? I'm using Notepad++ version 5.8.7 and NPPAutoIndent version 1.2. I'm not familiar with the way the plugin is supposed to work but I think I got the autoindenting to work.

First off, go to Settings->Preferences->Misc and ensure that Auto-indent is not ticked. Then go to Plugins->NPPAutoIndent and ensure Smart Indent is selected. Once that is done I get indentation like this when I press Return after each line:

function test() {
    return "Test";
}

This is what it looks like otherwise:

function test() {
return "Test";
}

I hope that helps.

Upvotes: 4

Related Questions