Hi all,
I wanted to extend scintilla to recognize hyperlinks like http:, ftp:,
mailto: etc. My idea was to have a post lexer which find hyperlinks and
mark them.
I began to write a function ColouriseHyperlinks and wanted to call this
function after lexing and folding in ScintillaBase::Colourise. But then
I saw that I have to define one or more styles to use hyperlinks
(hotspots). I wanted to have hyperlinks in every lexer but I didn't want
to extend each lexer. I think the most of the languages have comments
and strings. So I will need two or more styles. (comments are defined as
line comment, block comment, javadoc comment) I think that won't be the
right way to implement hyperlink recognition.
The hotspots should be lexer/language independent. So hyperlinks should
be an indicator than a style. Then it will be possible to mark
hyperlinks independently from styles. What about a new indicator
INDIC_HOTSPOT or INDIC_HYPERLINK? The look is same like INDIC_PLAIN. But
the mouse behaviour is similar to hotspot style. I know there are three
indicators only. So hyperlinks will be an option.
I think it should be easy to extend scintilla to support these feature.
What do you think? Is there a chance that this will work? Are there
other ideas?
Regards,
Carsten
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest