• Login
Community
  • Login

Gap between line numbers and textarea depending on Language menu setting

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 2.3k 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.
  • P
    PeterJones
    last edited by PeterJones Jun 22, 2016, 1:48 PM Jun 22, 2016, 1:48 PM

    I recently noticed that some of the Language Menu selections add an extra border/gap between the line number section and the actual text, and others do not. For example, a plain .txt file or “Batch” or “Makefile” do not have this gap, but others like “C” and “Perl” and “HTML” do have this gap. It appears all my User Defined Languages do have this extra gap, as well.

    NoGap

    WithGap

    So, I have a few questions:

    1. Can I change this setting on a per-language basis (and if so, how)? For example, could I turn off the gap for “HTML”, or could I turn on the gap for “Makefile”?
    2. Can I change this setting on my User-Defined Languages?

    (I was about to ask a third question: “once you’ve overridden a .txt file’s Language, how do you get back to plain text (no syntax highlighting)”. But I read thru the entire Language list and found that “Normal Text” does it.)

    1 Reply Last reply Reply Quote 0
    • M
      MAPJe71
      last edited by Jun 22, 2016, 4:36 PM

      Hint: fold indicators are shown in this column when applicable.

      1 Reply Last reply Reply Quote 2
      • P
        PeterJones
        last edited by PeterJones Jun 22, 2016, 7:41 PM Jun 22, 2016, 7:40 PM

        Thanks. That would’ve been obvious if I’d been starting from actual C or Perl with folding. Since I was starting from a Normal Text file and going the other way, it wasn’t as obvious. :-)

        So I’ve got a UDL that has no folding defined, but it still shows up with the gap. Is there a way to turn off the gap when the UDL doesn’t have any folds? Or am I just missing another tab that includes folding settings, other than “Folder & Default”? Okay, I looked, and I see “Comment & Number” has the (_) Allow folding of comments, but that’s turned off on my UDL as well.

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