visualfc / atk

Another Golang Tcl/Tk binding GUI ToolKit
GNU Lesser General Public License v2.1
98 stars 19 forks source link

Bind for Text Selection and Tag #23

Open sunshine69 opened 3 years ago

sunshine69 commented 3 years ago

Hi,

Thank you for the work, it looks good.

I am trying to build a small editor using this to replace / an alternative to gtksourceview. However I did not see how I can do:

Many thanks,

visualfc commented 3 years ago

not implement. but can call interp

tk.MainInterp().Eval(text.Id()+ " tag add highlightline 3.0 4.0")
tk.MainInterp().Eval(text.Id() + ` tag configure highlightline -background yellow -font "TkFixedFont" -relief raised`)
sunshine69 commented 3 years ago

Any plan or time to implement it?