Menu

Inserting tab characters in makefiles

2007-10-29
2012-11-13
  • Nobody/Anonymous

    The coding standard I use says that tab must be four spaces. This is easy to configure in notepad++. But when editing makefiles this standard is not valid as tab characters have a special meaning in makefiles.

    Is it possible to configure notepad++ to use real tabs in [Mm]akefiles and when the selected language is Makefile? Or is it at least possible to use an alternative key combo to insert a tab char?

    I can cut and paste an exisiting tab char as a work around, but I have to at least change the tab settings to get that first tab character.

    Thanks,
    Nick.

     
    • GVC

      GVC - 2007-10-31

      I've addressed this already a while ago.  See http://sourceforge.net/forum/message.php?msg_id=4402358

      However, no answer received, apart from the fact that this could be a possible improvement to NPP.

      It would be nice if you could set that kind of things for every language separately.  There's already lots of stuff that can be set individually anyhow...

      Best rgds,

      --Geert

       
      • Nobody/Anonymous

        I just found that Ctrl-Shift-I will insert a literal tab, while the TAB key inserts 4 spaces (as I have deliberately set it to do)!  99% of the time, I want a 4 space indent/outdent.  But that 1% of the time when I need a literal tab for a here-document, makefile, Solaris syslog.conf, etc., it's a pain to have to go copy&paste one from someplace else.  Ctrl-Shift-I to the rescue!

        In case it matters I'm using a pretty stock v4.7.5, though with few TextFX Viz settings.

         
        • NG

          NG - 2008-04-05

          Thanks you I had the same problem. This shortcut Ctrl-Shift-I will be very useful. Before I was using regexp replacement before saving my makefile to change 4 spaces into tabs.