-- Copyright 1996-2000 Robelle Solutions Technology Inc. -- Version 1.02 September 7, 2000 name QSLUtilListInclude group "Ro&belle" command "List &Include"; property QSLScriptVersion = "ListInclude 1.02 - Copyright Robelle Solutions Technology 2000"; -- This script allows a user to search for strings, regexp or patterns in one or more -- files. This script calls the ProcessListRequest method of the ListAll.qsl script. -- Of course, the ListAll script must be loaded already. -- -- The script has entry points implemented as On Command blocks: -- -- String: search include files with a simple string -- Regexp: search include files with a regular expression -- Pattern: search include files with a pattern -- About: displays a short text in the Script Control Panel explaining basic -- operations -- on command "&String" QSLUtilListAll.ProcessListRequest(1, "Include"); endon on command "&Regexp" QSLUtilListAll.ProcessListRequest(2, "Include"); endon on command "&Pattern" QSLUtilListAll.ProcessListRequest(3, "Include"); endon on command "About..." qedit.showscp = true; writelog QSLScriptVersion ; writelog " " ; writelog "This script will perform a search on the current file"; writelog "and files named in $INCLUDE, !INCLUDE, #INCLUDE or .INCLUDE"; writelog "lines. These files will be opened in Read-Only mode." ; writelog " " ; writelog "ListInclude will use selected text, if any, as the search string."; writelog "If no text is highlighted, then ListInclude will prompt you for"; writelog "a search string." ; writelog " "; endon ;