Felix Kater napsal(a):
Hi,
is there a way to change the appearance (color or similar) of the
horizontal line indicating a fold -- independent from the color of the
code?
I've got documents with a lot of folds, so nearly every line gets
underlined. Especially with my gtk contrast theme this makes code hard
to read.
If not, could anyone point me to the source drawing this line?
Hello,
I did that some months ago in my Scite sources (version 1.68). It is
done this way:
- in scintilla\include\Scintilla.h add new constant for folding line
style (after the line with #define STYLE_CALLTIP 38):
#define STYLE_FOLDINGLINE 39
#define STYLE_LASTPREDEFINED 40
- in scintilla\src\Editor.cxx change lines to be painted with this style:
surface->FillRectangle(rcFoldLine,
vs.styles[STYLE_DEFAULT].fore.allocated);
change to:
surface->FillRectangle(rcFoldLine,
vs.styles[STYLE_FOLDINGLINE].fore.allocated);
After doing that and recompiling, you can define new color for
folding in your properties:
# Folding line
style.*.39=fore:#E0E0E0
-- regards Roman
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest