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.

var WorkingFile = UltraEdit.activeDocument;
function KeywordCaseChange(SearchString)
{
WorkingFile.top();
// Do initial search for string
UltraEdit.perlReOn();
WorkingFile.findReplace.regExp = true;
WorkingFile.findReplace.matchCase = false;
var CompletionFlag = 0;
while (CompletionFlag == 0)
{
WorkingFile.findReplace.find(SearchString);
// If the initial search fails, END and return false.
if (WorkingFile.isFound() == false)
{
CompletionFlag = 1;
return false;
}
else
{
WorkingFile.toUpper();
}
}
WorkingFile.top();
}
KeywordCaseChange("\\bkeyword1\\b|\\bkeyword2\\b|\\bkeyword3\\b");
UltraEdit.insertMode();
UltraEdit.columnModeOff();
UltraEdit.activeDocument.top();
while (!UltraEdit.activeDocument.isEof()) {
UltraEdit.activeDocument.write(" ");
UltraEdit.activeDocument.key("BACKSPACE");
UltraEdit.activeDocument.key("CTRL+RIGHT ARROW");
}
UltraEdit.activeDocument.top();


var WorkingFile = UltraEdit.activeDocument;
function KeywordCaseChange(KeyWordList)
{
WorkingFile.top();
// Do initial search for string
UltraEdit.perlReOn();
WorkingFile.findReplace.regExp = true;
WorkingFile.findReplace.matchCase = false;
WorkingFile.findReplace.replaceAll = true;
// Assemble the search string we need to do the initial tagging.
var SearchString = "^(((?!--).)*?)(?<!@@@)\\b(" + KeyWordList + ")\\b";
var CompletionFlag = 0;
// Tag all the correct keywords by inserting "@@@" in front of them.
while (CompletionFlag == 0)
{
WorkingFile.findReplace.replace(SearchString, "\\1@@@\\3");
// If the initial search fails, END and return false.
if (WorkingFile.isFound() == false)
{
CompletionFlag = 1;
}
}
WorkingFile.top();
// Set the search string for the next stage, where we convert them to uppercase.
SearchString = "(?<=@@@)\\w+\\b";
CompletionFlag = 0;
while (CompletionFlag == 0)
{
WorkingFile.findReplace.find(SearchString);
// If the initial search fails, END and return false.
if (WorkingFile.isFound() == false)
{
CompletionFlag = 1;
}
else
{
WorkingFile.toUpper();
}
}
WorkingFile.top();
// Remove all the tagging.
WorkingFile.findReplace.replace("@@@", "");
}
KeywordCaseChange("keyword1|keyword2|keyword3");
It also takes the keyword list in only one place -


acinfo64 wrote:The Mofi method has the advantage that it uses all the words of the uew file and it skips the comment, but I cannot write the keywords any more in lower case and I don't want to write in upper case all the time.
