[Lazarus] Synedit Gutter - current line number a different color

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Sep 16 11:11:54 CEST 2011


Hi,

Attached is a screenshot of how my Lazarus editor now looks.  I used to
have the current line in the editor source code with a slightly dulled
background color, but that interfered (made it hard to see) the Special
Characters (tab characters) I now have enabled.

I couldn't see an option for this, so I hacked my copy of SynEdit to
draw the current line number in a different color instead.
I attached the patch if anybody else wanted to apply something similar
to their Lazarus.

PS:
I believe when changing the source code current line background color,
it cause more redrawing in Synedit - thus slowing down the editor a bit.
Maybe just painting the gutter line number keeps the performance - but
with a similar effect?


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gutter.png
Type: image/png
Size: 2231 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110916/799ac55c/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: syngutterlinenumber.pp.patch
Type: text/x-diff
Size: 753 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110916/799ac55c/attachment.patch>


More information about the Lazarus mailing list