thaolt / qscite

Automatically exported from code.google.com/p/qscite
GNU General Public License v2.0
0 stars 0 forks source link

Highlight the line we are currently on? #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Reposting from other issue:

I saw in other QScintilla projects that it has a feature of highlighting the 
line we are currently working on (light blue on white background). Would it be 
possible to implement something like that in qscite?

Thanks!

Original issue reported on code.google.com by karaba...@gmail.com on 1 Mar 2011 at 3:01

GoogleCodeExporter commented 8 years ago
Looks like this call would do it:

virtual void QsciScintilla::setCaretLineBackgroundColor (   const QColor &  col  
)    [virtual, slot]

see 
http://www.riverbankcomputing.co.uk/static/Docs/QScintilla2/classQsciScintilla.h
tml#a8c227f8c948aeb5e6a2cf73397387cc0

Probably want to allow the color to be specified in the preference and allow 
for no background color for the line currently being edited for those who do 
not like that feature.

Wish I had some time to look into this more but too busy with day job right now.

Original comment by didoro...@gmail.com on 12 Jun 2011 at 6:30