URL Identification

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
pwdiener
Posts: 134
Joined: Wed Jul 11, 2007 3:45 pm

URL Identification

Post by pwdiener »

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?
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

How does Zeus identify a URL when typed?

These URL definitions are hard coded into the syntax highlighter.
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/
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://*

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
Post Reply