How does Zeus identify a URL when typed? It seems to recognize http: and ftp: (possibly others).
Is there a way I can get it to recognize additional protocols? Specifically, we use an issue manager that uses a URL of the form ivissue://Issueview:nnnnnn/ which I'd like to highlight in text and make it "open-able" using the open in registered application popup menu entry or a macro.
Is there any way to run a macro (or specify an action in some other way) when I double click on something?
URL Identification
How does Zeus identify a URL when typed?
These URL definitions are hard coded into the syntax highlighter.
The only option would be to use a keyword pattern. In the Keywords section of the document type, define a pattern that looks like this: ivissue://*Is there a way I can get it to recognize additional protocols? Specifically, we use an issue manager that uses a URL of the form ivissue://Issueview:nnnnnn/
NOTE: For this pattern to work you would need to remove the : and / characters as delimiters and make sure // is not defined as a line comment.
which I'd like to highlight in text and make it "open-able" using the open in registered application popup menu entry or a macro.
There is no way to open the URL on double click but it should be possible to write a macro that can open the URL on a key press or from the toolbar or menu.
Zeus has the shell_execute macro function that can open an associated file (i.e. see the browser.lua macro example).
It should be possible to write a macro that uses a regexp to find the URL and then opens the resulting URL using the shell_execute function.
Cheers Jussi