[Lazarus] The color of special characters in the Source Editor

Martin lazarus at mfriebe.de
Fri Sep 16 10:27:04 CEST 2011


On 16/09/2011 09:11, Graeme Geldenhuys wrote:
> On 16/09/2011 09:52, Martin wrote:
>> I myself used (past tense) to have that on all the time, for #9
>> detection. But then every space is a dot. So I set the space foreground
>> color, near the background, and all the special chars are faded out.
>> Only in comments and strings, it looks like hell.
>>
>> For me personally it might already be solved by show #9 as special char
>> only.  (though I actually liked the spaces too)
>>
>> My current idea is to make the color (forground) alpha adjustable.
>
> I too wanted to remove the "dot" for spaces from the synedit code
> [because string literals and comments are hard to read], so that only
> tab characters are shown. While having "show special character" enabled,
> I couldn't figure out what is a real dot in a string literal and what is
> a "fake show special chars dot" in a string literal. See attached image.
>


             if (c = #32) and Special then begin
               // #194#183 looks like .
               Dest[DestPos-1] := #194;
               Dest[DestPos]   := #183;
               inc(DestPos);
             end;

Is the dot.

just delete the block, with no replacement. (the space is already 
copied, the block overwrites the space)






More information about the Lazarus mailing list