Closed taha-cmyk closed 11 months ago
TextArea
does not support syntax highlighting. That was never within the planned scope. You might have some luck with external tview
widgets. Maybe an issue search will turn something up.
For read-only text, TextView
supports coloured text, of course.
@rivo sorry for bumping closed thread, just information for @taha-cmyk
There is a widget from pgavlin that I have forked and updated the color handling and re-added some features back that were stripped out.
The editor is an old version of the micro editor's main text view for code editing with syntax highlighting enabled, albeit in a rather simplistic form. It is fairly simple to use, both repo's linked below have example usages.
@rivo sorry for bumping closed thread, just information for @taha-cmyk
There is a widget from pgavlin that I have forked and updated the color handling and re-added some features back that were stripped out.
The editor is an old version of the micro editor's main text view for code editing with syntax highlighting enabled, albeit in a rather simplistic form. It is fairly simple to use, both repo's linked below have example usages.
Thank u for that , I really appreciate it
How to implement Dynamic Colors in TextArea my case : i want to implement a syntax highlighting for C language but it render color flags as strings not ANSI
OUTPUT IN TextArea