.
.   
NEdit.org
   .

Home
 - News - Download - Documentation - Search - FTP     
.
.
  

Make HTML tags

[Back]

This macro converts the selected text s into <a href="mailto:s">s</a> :

    selStart = $selection_start
    selEnd = $selection_end
    replace_range(selStart, selEnd, "<a href=\"mailto:" get_selection() "\">" get_selection() "</a>")
And this one turns the currently selected text into a link with the target chosen in the dialog box (prepends http:// to the target):
    selStart = $selection_start
    selEnd = $selection_end
    target = string_dialog("Enter the target", "OK", "Cancel")
    if ($string_dialog_button == 1) {
	replace_range(selStart, selEnd, "<a href=\"http://" target "\">" get_selection() "</a>")
    }
[Back]

. Released on  Wed, 21 Nov 2001  by C. Denat  

  
Visit our sponsor
Check Metrolink

© NEdit.org
1999-2001
All rights reserved


.