<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 10/11/2013 14:48, Florian Klaempfl
wrote:<br>
</div>
<blockquote cite="mid:527F9CBA.6030402@freepascal.org" type="cite">Am
06.11.2013 20:42, schrieb Martin:
<br>
<blockquote type="cite">
<blockquote type="cite">One of my favourite features:
<br>
<br>
'Inactive code in $IFDEF can be "low-lighted" (greyed out)'
<br>
<br>
:)
<br>
<br>
</blockquote>
<br>
And, if you configure IFDEF to be foldable, and right click the
fold
<br>
gutter part, then you find an option to fold all inactive ifdef.
<br>
</blockquote>
<br>
Nice to see, now my last complaint on folding must be fixed and
I'am really happy: the folding header line should be surrounded
fully by a rectangle, not only the three dots at the end :)
<br>
<br>
</blockquote>
<br>
Not finished yet (and may be a while until I continue it), but
usable. <br>
<br>
<img src="cid:part1.01080202.03030203@mfriebe.de" alt=""><br>
<br>
Revision 43425<br>
<br>
You can hide the yellow and ..., by cahnging the colors for the fold
marker in the editor options.<br>
The new frame will still extend to the same position.... (so it does
not go to the right end of the editor)<br>
<br>
There is no config, so you need to set the color in the source<br>
<br>
components\synedit\syneditfoldedview.pp<br>
Line 3720<br>
<br>
FMarkupInfoFoldedCodeLine := TSynSelectedColor.Create;<br>
FMarkupInfoFoldedCodeLine.Background := clNone;<br>
FMarkupInfoFoldedCodeLine.Foreground := clNone;<br>
FMarkupInfoFoldedCodeLine.FrameColor := clNone;
//<<<<<<<<<<< change this for a
frame<br>
<br>
FMarkupInfoHiddenCodeLine := TSynSelectedColor.Create;<br>
FMarkupInfoHiddenCodeLine.Background := clNone;<br>
FMarkupInfoHiddenCodeLine.Foreground := clNone;<br>
FMarkupInfoHiddenCodeLine.FrameColor := clNone;<br>
<br>
You can also set Alpha, priority and linestyle.<br>
<br>
eg if I do<br>
FMarkupInfoFoldedCodeLine.FrameColor := clMaroon;<br>
FMarkupInfoFoldedCodeLine.FrameEdges := sfeBottom;<br>
then I get:<br>
<img src="cid:part2.00080305.03000808@mfriebe.de" alt=""><br>
---------------------------<br>
There are 2 settings,<br>
1) FMarkupInfoFoldedCodeLine. lines with a fold starting (the fold
header line is visible)<br>
2) FMarkupInfoHiddenCodeLine. lines with a "hide" starting (nothing
visible)<br>
<br>
Hide usually applies, if you select random text, and fold all the
lines in the selection.<br>
Hide is also available for comments, so you do not even see the
first line of the comment<br>
<br>
IMHO, a frame for "hide" is not good, because it would frame around
an unrelated line.<br>
Of course a frame can be used, that only has a bottom-edge
(FrameEdges = sfeBottom). Then it is like an underline.<br>
<br>
<br>
<br>
</body>
</html>