Community
    • 登入

    Gap between line numbers and textarea depending on Language menu setting

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    3 貼文 2 Posters 2.3k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • PeterJonesP
      PeterJones
      最後由 PeterJones 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • MAPJe71M
        MAPJe71
        最後由 編輯

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

        1 條回覆 最後回覆 回覆 引用 2
        • PeterJonesP
          PeterJones
          最後由 PeterJones 編輯

          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 條回覆 最後回覆 回覆 引用 0
          • 第一個貼文
            最後的貼文
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors