Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    General Discussion
    3
    3
    2668
    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.
    • Doruk Aksoy
      Doruk Aksoy last edited by

      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)

      Scott Sumner 1 Reply Last reply Reply Quote 0
      • Scott Sumner
        Scott Sumner @Doruk Aksoy last edited by

        @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
        • gstavi
          gstavi last edited by

          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
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors