gonutz / wui

Windows GUI library for Go (Golang). Comes with a graphical UI designer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TextEdit styling questions

maddie opened this issue · comments

I've got 2 questions about styling TextEdit widget:

  1. Is it possible to change the background color of TextEdit?
  2. Is it possible to add syntax highlighting to the content of TextEdit?

The standard Windows API text edit does not support coloring text as far as I know, I think you would have to use the rich text edit for syntax highlighting. This is not implemented in wui. As for the background color, currently this is not supported either but could probably be done with the regular text edit.

Unfortunately I have no time to work on wui right now but if you want to give it a go and add a SetBackgroundColor function to the text edit, I would love to incorporate a pull request :-)