In Notepad++, there's a setting>Preferences>Tab option.  Set it to 2 and "replace with space" so hitting Tab inserts a pair of spaces, rather than a Tab character.  (Different programs interpret Tab differently.  No idea why.)  That way you can still hit Tab twice to indent properly.