home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-1998 - Modelworks Software
-
- /**
- @Tool: promote~removes a parent - children relationship by making all
- children of a parent siblings to the parent. To use select two or more lines
- and then run this script.
- @EndTool:
- @Summary: promote~removes code folding from selected lines
- */
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var lines = editor.getLines();
- var selection = editor.GetSelection();
- lines.promoteLines(selection.startLineIndex);
- lines.update("Promote Lines");
- }
- }
-
- !!/Script
-
-