I have extended scintilla and scite to support
hyperlinks on URLs and email addresses. This feature
was covered from VS.net. There are hyperlinks in source
code underlined. With Ctrl+Click (left mouse button)
the URL is shown in browser window or the mail client
opens.
In scintilla there is a new indicator style
INDIC_HYPERLINK. When you set this style URLs and email
addresses are underlined in color of current style
(e.g. comment, string). When the mouse is over a
hyperlink the color of line changes and the hand cursor
is shown. You can activate the link with Ctrl+Click.
This feature is independently from the current lexer.
Every hyperlink in comments or string are shown.
With indicator.hyperlink in a property file you can
control this feature in scite. Default is -1 (no
hyperlink). With values 0, 1 and 2 you can set
indicator 0, 1 or 2. Hyperlinks in output pane work too.
In scintilla container you only have to set one of the
indicators to INDIC_HYPERLINK.
This works fine for me, but there is one major problem.
The hyperlink indicator doesn't work with hypertext
documents (html). ;-) The reason is that hypertext
lexer use more styles than other lexer.
Hyperlink indicators work in scilexer version only.
So this is not the final version. This version is for
discussion only.
The attached file contains a screenshot too.
Regards,
Carsten Sperber
Changed files for hypertext indicator
Logged In: YES
user_id=12579
There are several issues with this discussed on the mailing
list. The biggest problem is that this patch resets the end
of styling position so that text gets lexed repeatedly which
is quite slow.