ksdroid Member Licensed User Longtime User Sep 5, 2013 #1 Is it possible to use syntax highlighting in a edittext? Sorry For my english
T thader2012 Member Licensed User Longtime User Sep 5, 2013 #2 Yes, you can use the library ReachText in label control. I think, you can try it in the edittext also. Upvote 0
Yes, you can use the library ReachText in label control. I think, you can try it in the edittext also.
M Mahares Expert Licensed User Longtime User Sep 5, 2013 #3 I think he meant RichString library. Here is an example that will work for you: Code: Copy Dim rs As RichString Dim txtTest as Edittext rs.Initialize("{Blue}ks{Blue}{Red}droid{Red}") rs.Color2(Colors.Blue,"{Blue}") rs.Color2(Colors.Red, "{Red}") rs.BackColor(Colors.Yellow,2,7) txtTest.Text = rs 'will highlight droid yellow Upvote 0
I think he meant RichString library. Here is an example that will work for you: Code: Copy Dim rs As RichString Dim txtTest as Edittext rs.Initialize("{Blue}ks{Blue}{Red}droid{Red}") rs.Color2(Colors.Blue,"{Blue}") rs.Color2(Colors.Red, "{Red}") rs.BackColor(Colors.Yellow,2,7) txtTest.Text = rs 'will highlight droid yellow
ksdroid Member Licensed User Longtime User Sep 6, 2013 #4 is there a way how i can use this for my html editor? sorry for my english Upvote 0