Zack
Zack

Reputation: 2485

How do you setup tab settings for user defined file types in notepad++?

I'm trying to setup Notepad++ to be able to edit a particular source-code file (*.mrc / mIRC Scripting File). The only thing I can't figure out is how to set the tab settings to 3 spaces.

I've searched google, however, I can't seem to find how to do this. The extent of what I search brings me to the setup for a user-defined language which I've already pretty much done. Tabs are the last steps.

When I add my user-defined file type to notepad++, the extension doesn't register in the Settings > Preferences > Language Menus tab. >:/

Upvotes: 43

Views: 5167

Answers (3)

Ikem Krueger
Ikem Krueger

Reputation: 193

I know it's an old thread, but I had the problem recently.

This is how you change that:

  1. Open Notepad++ settings dialog. There click on Language.
  2. On the right section where it says Tabs select the language.
  3. Uncheck Use default.
  4. On Tab size click on the blue number. In the dialog change the number to your likings and close them.
  5. Check Replace with spaces if needed.

Upvotes: -1

sshow
sshow

Reputation: 9084

I ended up changing the "Default" tab spacing to what I use the most, and most of the other files I work with are already explicitly defined in the application.

Upvotes: 3

matzahboy
matzahboy

Reputation: 3024

You could always edit the langs.xml file. It contains code like:

<Language name="batch" ext="bat cmd nt" commentLine="REM">
    <Keywords name="instre1">rem set if else exist errorlevel for in do break call copy chcp cd chdir choice cls country ctty date del erase dir echo exit goto loadfix loadhigh mkdir md move path pause prompt rename ren rmdir rd shift time type ver verify vol com con lpt nul defined not errorlevel cmdextversion</Keywords>
</Language>

Upvotes: 0

Related Questions