Search for a script to insert sequential line numbers at the beginning of each line starting with 1. Line numbers to be followed by a dot, then space and content.
Example:
FROM
Line 1
Line 2
Line 3
TO
1. Line 1
2. Line 2
3. Line 3
Thank You,
Robert
Welcome to the IDM Forum. This forum is meant as a user-to-user support mechanism where users can share knowledge and tips for all IDM software.
Since these forums are user-to-user based, IDM does not regularly read or reply to the posts in this forum. For problem reports, suggestions, or feature requests, you must email us directly. Our trained technical support staff answers most inquiries within 30 minutes.
if (UltraEdit.document.length > 0)
{
UltraEdit.insertMode();
UltraEdit.activeDocument.top();
UltraEdit.columnModeOn();
UltraEdit.activeDocument.columnInsert(". ");
UltraEdit.activeDocument.columnInsertNum(1,1,false,false);
UltraEdit.columnModeOff();
// Move the inserted spaces right the inserted numbers to left.
UltraEdit.ueReOn();
UltraEdit.activeDocument.findReplace.mode=0;
UltraEdit.activeDocument.findReplace.matchCase=false;
UltraEdit.activeDocument.findReplace.matchWord=false;
UltraEdit.activeDocument.findReplace.regExp=true;
UltraEdit.activeDocument.findReplace.searchDown=true;
UltraEdit.activeDocument.findReplace.preserveCase=false;
UltraEdit.activeDocument.findReplace.replaceAll=true;
UltraEdit.activeDocument.findReplace.replaceInAllOpen=false;
UltraEdit.activeDocument.findReplace.replace("%^([0-9]+^)^( +^)","^2^1");
}