Hello Developers, it’s been a long time since I have posted in this blog.. So in this article I am going to show you how to make Text Syntax Highlighter in Sketchware..
1) Create a new Sketchware project
2) Add a Textview in view area
3) Create a new moreblock with name setHighlighter and with a Textview:view…..
4) Drag and drop a ASD block and paste the below code.
5) In onCreate event add the moreblock as shown…
6) Then add Textview setText block with some Java code in it…
7) Done… You will get a Textview as below