43

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. >:/

4
  • 1
    I ended up changing the "Default" tab spacing to what I use the most, as most of the other files I work with are defined natively in the application.
    – sshow
    May 30, 2015 at 23:44
  • Related question on Super User: Changing tab size/length in a User Defined Language in Notepad++ May 31, 2018 at 15:14
  • @sshow should add his suggestion as an answer. This worked for me too, and is the only way to achieve the desired result.
    – Ameer
    Sep 21, 2018 at 18:56
  • @Ameer: I added an answer now. Glad it helped!
    – sshow
    Sep 21, 2018 at 23:08

3 Answers 3

3

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.

1
  • This should be the a accepted answer. The answer by @matzahboy does not work.
    – Ameer
    Sep 22, 2018 at 4:39
0

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>
3
  • 3
    This doesn't seem to work. The option is now there, but it doesn't really enforce it.
    – SineSwiper
    Nov 2, 2011 at 19:55
  • 1
    Behavior remains default despite this adding a menu option.
    – roufamatic
    Jan 27, 2012 at 0:49
  • 1
    Editing langs.xml requires a different editor and possibly admin priviliges. The file says: <!-- The key words of the supported languages, don't touch them! -->. Adding a Language element does not change the language list in v6.3.2 (2013-04-03).
    – handle
    Nov 19, 2014 at 8:31
0

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.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.