Hide horizontal line at folds?
-
Is there a way to hide or change the color of the horizontal white line at a folded function/code block?
s -
Unfortunately, there is not yet a configuration option to allow users to change that color. As mentioned in the Hide Fold Lines discussion, there may be messages that plugins can send – that topic had an example of hidden lines, but I was able to find an equivalent for the fold line: the PythonScript plugin could send
editor.setElementColour(ELEMENT.FOLD_LINE, (0,0,255,255))
where the color is
(RED,GREEN,BLUE,ALPHA)
whereALPHA
should be 255here’s the results of me running that command in PythonScript 3:
and then I changed it to GREEN instead of BLUE:
editor.setElementColour(ELEMENT.FOLD_LINE, (0,255,0,255))
And hiding it completely can be done by either setting the
ALPHA
to 0, oreditor.setFoldFlags(0)
in PythonScript (or the equivalent, as shown in that other discussion, in NppExec or other such plugin)This feature was requested in 2023, but neither the developer nor any other volunteers have apparently put in a PR to implement it. I’ve just “bumped” the discussion, with links to a few related discussions here; if you’d like to go upvote that, and/or put in your 2cents, that might encourage someone to put in the effort.