RSS

 
WinEdt Macro Library  | HTML previous macro  | next macro

openlink

Description

This macro opens the following kinds of HTML links in WinEdt:

  • file with relative path (like ../../up.html)
  • file with browser-like path specification (file:///C|/Programs...)
  • internal or external references (#annote or foo.html#mark)
  • folders (barfolder/)
  • http:// NOT YET.

It's meant to enhance (and override) the "Open on Doubleclick" that comes with WinEdt's Include feature.

Installation

  • Put the file in a folder %b\Macros\HTML\.
  • Define active strings HREF="?" and href="?" (in Options | Settings | Active Strings)
  • Check Dbl-Click, Type "HTML", and put the line
    [Exe("%b\Macros\HTML\openlink.edt")]
    
    in the field below.

Download

HTML/openlink.edt

Macro contributed by Robert <w.m.lgmx.net>.

WinEdt Macro Library  | HTML previous macro  | next macro