• Login
Community
  • Login

Tabs and Spaces don't match what I see in normal notepad (and other sources)

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 3.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    Doruk Aksoy
    last edited by Jan 20, 2017, 9:38 PM

    Here’s a picture to help explain what I mean better: http://imgur.com/a/0o6rY

    This is quite annoying because GitHub and such also mess up when tabs and spaces show up and it’s quite annoying. How can I make them match? (Or what’s causing it)

    S 1 Reply Last reply Jan 20, 2017, 11:21 PM Reply Quote 0
    • S
      Scott Sumner @Doruk Aksoy
      last edited by Jan 20, 2017, 11:21 PM

      @Doruk-Aksoy

      You can configure what a “tab” means to Notepad++ in the Settings (menu) -> Preferences -> Language -> Tab Settings area. A requirement for setting this is knowing what you want. If your requirement is “just like normal notepad” you need to set the “Tab size” to 8 and make sure that “Replace by space” is UNchecked for the type of file you are working with.

      1 Reply Last reply Reply Quote 0
      • G
        gstavi
        last edited by Jan 20, 2017, 11:26 PM

        Not sure this is the same thing but a colleague of mine recently tried to change fonts in NPP. He changed it for the C language styles but for tab and spaces NPP (or Scintilla) refer only to the Global Styles --> Default Style. So the they were not synchronized to the C code. E.g. 4 spaces where shorter than 4 C chars since spaces where in ‘Global’ font and not the C font.

        1 Reply Last reply Reply Quote 0
        2 out of 3
        • First post
          2/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors