Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

URL highlighting in TLMDEditView?

I am using TLMDEditView to edit small pieces of text without any specific syntax highlighting scheme. However, I would like the editor to highlight URLs and make them clickable, which is a popularly requested feature in every current editor. Is it possible? (If not, please treat this as a feature request).


  • 3 Comments sorted by Votes Date Added
  • Anyone? Hello?
  • edited February 2012 Posts: 0Vote Up0Vote Down

    Its, of course, possible to show URLs highlighted; you should learn how to write syntax schemes and write your URLs highlighting scheme. Standard schemes available with package include text scheme where e-mails are highlighted.

    But, there are no special mechanism, which will help you to make URLs clickable. You need to do everything manually: write OnClick event handler, transform coordinates, and then scan the text under the cursor for URL.

    Look also at OnGetMouseCursor event.
Sign In or Register to comment.