• Login
Community
  • Login

hide the horizontal line under collapsed blocks

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
block
9 Posts 5 Posters 4.6k 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.
  • S
    Stéphane Deschamps
    last edited by Aug 29, 2017, 6:57 PM

    Hi,

    I can’ t find how to hide the horizontal line under collapsed blocks…

    It seem that’s the only way to control the look of this line is to change the text color… but I don’t want to do that… I just want to hide this line.

    Does anyone have any solutions ?

    1 Reply Last reply Reply Quote 1
    • D
      dail
      last edited by Aug 29, 2017, 7:17 PM

      This is not possible to do through any Notepad++ settings. You will have to use a plugin. For example if you install LuaScript and edit the startup script to:

      editor1.FoldFlags = 0
      editor2.FoldFlags = 0
      

      This will do what you want.

      A 1 Reply Last reply Nov 1, 2018, 2:46 PM Reply Quote 3
      • S
        Stéphane Deschamps
        last edited by Sep 3, 2017, 3:23 PM

        Hi dail,

        It works perfectly fine on a PC using Windows 7 64bit. And do exactly what I need. Thanks a lot ;)

        However it does’nt work with my PC using XP SP3 32bit and notepad++ 7.5 :

        • I downloaded your LuaScript.zip at https://github.com/dail8859/LuaScript/releases/tag/v0.7.0
        • Then I copied the dll in the notepad folder “plugin”.
        • When I open Notepad, a window “Exception” shows the message “Unknow exception”.
        • And the plugin does not appear in the plugin manager.

        If I delete the dll in the pluging folder and I try to install it with the notepad menu settings/import/import setting(s) :

        • I’ve got the same window,
        • then a second window “Win31Exception”, message : “An exception occured. Notepad++ cannot recover and must be shut down. The exception deails are follows : Code: 0xC0000005 Type: Access violation Exception adresse : 0x004A5F76”.
        • Then a third window “Notepad++ crash analysis”, message “Do you want to save a dump file? Doing so can aid in developing Notepad++”
        • A fouth window “Recovery iniating”, message " Notepad++ will attempt to save any unsaved data. Howerver, dataloss is very likely."
        • A fith window “Recovery success”, message “Notepad++ wasable to successfully recover some unsaved documents, or nothing to be saved could be found. You can find the results at : C:\DOCUME~1…\Temp\N++REVOC”
        • nevertheless the dll had been copied in the folder plugin
        • but when I open Notepad++ I’ve got the same window “Exception”, message “Unknow exception”
        • and your plugin does not appear in Notepad++…

        Does you plugin usually works with XP SP3 ?

        D 1 Reply Last reply Sep 3, 2017, 4:52 PM Reply Quote 0
        • D
          dail @Stéphane Deschamps
          last edited by Sep 3, 2017, 4:52 PM

          @Stéphane-Deschamps

          Does you plugin usually works with XP SP3 ?

          In theory it should. The DLL is statically linked against the C++ runtime compatible with XP. Maybe someone has had luck running it on XP and could verify this.

          In practice, I don’t know. I’m certainly open to pull requests to address any compatibility issues, however due to the age of XP I personally have no plan, need, or way of testing these kinds of problems.

          1 Reply Last reply Reply Quote 0
          • S
            Stéphane Deschamps
            last edited by Sep 3, 2017, 5:06 PM

            Ok. Dont’ worry. Until another solution, I’ll work with the PC using Windows 7… unless you know another plugin like yours who do the same thing that I would ^^

            N 1 Reply Last reply Sep 4, 2017, 10:47 AM Reply Quote 0
            • N
              NippurDeLagash @Stéphane Deschamps
              last edited by Sep 4, 2017, 10:47 AM

              @Stéphane-Deschamps

              I just checked this on my old Windows XP SP3 machine. I did not try LuaScript, but the PythonScript plugin works fine.

              The versions available on this PC are: Notepad++ 7.4.2, Python 2.7.6, and PythonScript 1.0.8.0.

              The statements suggested by @dail translated into Python are:

              editor1.setFoldFlags(0)
              editor2.setFoldFlags(0)

              1 Reply Last reply Reply Quote 0
              • S
                Stéphane Deschamps
                last edited by Stéphane Deschamps Sep 11, 2017, 5:15 PM Sep 11, 2017, 5:15 PM

                hi,

                the PythonScript works perfectly fine with XP.

                Thanks to both of you @NippurDeLagash and @dail

                1 Reply Last reply Reply Quote 0
                • G
                  guy038
                  last edited by guy038 Oct 8, 2017, 12:37 PM Oct 8, 2017, 12:35 PM

                  Hello @stéphane-deschamps, @nippurdelagash @dail, and All,

                  I’m quite late, but I’ve just verified, on my Win XP SP3 configuration and I can confirm, Dail, that the Lua command editor.FoldFlags works, as expected on Win XP :-)) For information, the interesting values are :

                  • editor1.Foldflags = 0 which suppresses any line drawing

                  • editor1.Foldflags = 2 which draws a line, above the first line of a block, if this block is expended

                  • editor1.Foldflags = 4 which draws a line, above the first line of a block, if this block is contracted

                  • editor1.Foldflags = 8 which draws a line, under the first line of a block, if this block is expended

                  • editor1.Foldflags = 16 which draws a line, under the first line of a block, if this block is contracted

                  Note that the default fold mechanism may be restored, using the 16 value !

                  Cheers,

                  guy038

                  1 Reply Last reply Reply Quote 2
                  • A
                    AnotherOne @dail
                    last edited by Nov 1, 2018, 2:46 PM

                    @dail, thank you so much for your solution! Worked perfectly for me.

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