hide the horizontal line under collapsed blocks
-
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 ?
-
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.
-
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 ?
-
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.
-
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 ^^
-
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) -
-
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
-
-
@dail, thank you so much for your solution! Worked perfectly for me.