Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text highlighter

Status
Not open for further replies.

philyrobo

Programmer
Joined
Nov 27, 2000
Messages
8
Location
GB
I am currently writting a basic XML parser and text highlighter.
At the moment I am scanning through the text (document in a scrolling text pane) and looking through each character for a starting tab character. Then using the position in the text I specify where to start the text caret and select the appropriate text. This is very innefeicient, and Im sure their must be an easier way, but as I have found with Java the languages specification is very hindering.

Was wondering if anyone had any idea of a simpler or more powerfull solution.

Thanks for your time
Phil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top