home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / web_dev / files / mwjpp516.exe / %MAINDIR% / Tools / Misc / deleteCurrentLine.script < prev    next >
Encoding:
Text File  |  2001-06-19  |  481 b   |  23 lines

  1. !!Script
  2. // Copyright ⌐ 2001 - Modelworks Software
  3. // @Created build 484 cm20010215
  4.  
  5. /**
  6. @Tool: deleteCurrentLine~delete the current line
  7. @EndTool: 
  8. @Summary: deleteCurrentLine~delete the current line
  9. */
  10.  
  11. function DoCommand()
  12. {
  13.     var editor = getActiveEditor();
  14.     if (editor)
  15.     {
  16.         var selection = editor.getSelection();
  17.         editor.replace("", selection.startLineIndex, 0, selection.startLineIndex+1, 0);
  18.         editor.setActive("Delete Current Line");
  19.     }
  20. }
  21.  
  22. !!/Script
  23.