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.




UltraEdit.activeDocument.selectLine();
var selTxt = UltraEdit.activeDocument.selection;
UltraEdit.activeDocument.key("UP ARROW"); /* unselect */
var path = "";
var lineno = 0;
/* Regex for fully qualified windows path followed by linenumber */
var re = /((?:[a-z]:\\)(?:[^\/:*?"<>|\r\n]*\\)?(?:[^\\\/:*?"<>|\r\n]*[.]\w+))[^\d]*(\d+)/im;
/* Regex for what looks like a filename followed by linenumber */
var re2 = /([^ \\\/:*?"<>|\r\n]*[.]\w+)[^\d]*(\d+)/im;
var reRes = re.exec(selTxt); /* proces with Regex */
if (reRes != undefined) { /* fully qualified path found */
path = reRes[1];
lineno = parseInt(reRes[2]);
}
else {
var reRes = re2.exec(selTxt); /* proces with Regex */
if (reRes != undefined) { /* file found */
path = reRes[1];
lineno = parseInt(reRes[2]);
}
}
/* ok a path is found - try and open the file */
if(path.length>0) {
UltraEdit.open(path);
UltraEdit.activeDocument.gotoLine(lineno,1);
}----------------------------------------
Find 'Database' in 'C:\temp\temp.txt':
C:\temp\temp.txt(682): [[Category:Database]]
Found 'Database' 1 time(s).
----------------------------------------




UltraEdit.open("C:\\temp\\ASR_CV.txt");
UltraEdit.activeDocument.gotoLine(30,1);

