iMacro script syntax highlighting in Notepad++ editor
Posted: Sat May 17, 2008 3:24 pm
If you are editing a lot iMacro scripts by hand, than you will probably wish
that syntax highlighting would be a great idea. So your wishes become true, here it is.
Screenshot: of Demo-Loop-Csv-2-Web.iim How to install:
1. Of course, first you need Notepad++ editor. Homepage: http://notepad-plus.sourceforge.net/
2. Look for a file "userDefineLang.xml" in example: c:\Documents and Settings\USERNAME\Application Data\Notepad++\userDefineLang.xml (on XP) or c:\Users\USERNAME\AppData\Roaming\Notepad++\userDefineLang.xml (on Vista)
3. If this file does not exists, create it and paste the xml code in
OR
3. If the file exists, edit it and paste the full xml content in.
4. Go to iMacro Settings -> Paths -> External Editor and point it to "notepad++.exe" (usually it is c:\program files\notepad++\notepad++.exe)
Thats it .
Important: If you already defined your own user defined language, than you have to merge the xml contents manually, cause Notepad++ does not support such imports right now.
I've also put a public snippet out there:
http://snippets.dzone.com/posts/show/5511
that syntax highlighting would be a great idea. So your wishes become true, here it is.
Screenshot: of Demo-Loop-Csv-2-Web.iim How to install:
1. Of course, first you need Notepad++ editor. Homepage: http://notepad-plus.sourceforge.net/
2. Look for a file "userDefineLang.xml" in example: c:\Documents and Settings\USERNAME\Application Data\Notepad++\userDefineLang.xml (on XP) or c:\Users\USERNAME\AppData\Roaming\Notepad++\userDefineLang.xml (on Vista)
3. If this file does not exists, create it and paste the xml code in
OR
3. If the file exists, edit it and paste the full xml content in.
4. Go to iMacro Settings -> Paths -> External Editor and point it to "notepad++.exe" (usually it is c:\program files\notepad++\notepad++.exe)
Thats it .
Important: If you already defined your own user defined language, than you have to merge the xml contents manually, cause Notepad++ does not support such imports right now.
I've also put a public snippet out there:
http://snippets.dzone.com/posts/show/5511
Code: Select all
<NotepadPlus>
<UserLang name="IIM" ext="IIM">
<Settings>
<Global caseIgnored="no" />
<TreatAsSymbol comment="no" commentLine="yes" />
<Prefix words1="no" words2="no" words3="no" words4="yes" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">000000</Keywords>
<Keywords name="Folder+"></Keywords>
<Keywords name="Folder-"></Keywords>
<Keywords name="Operators">{ } + < = ></Keywords>
<Keywords name="Comment">1 1 2 2 0'</Keywords>
<Keywords name="Words1">ADD BACK CLEAR CLICK CMDLINE DISCONNECT DS EXTRACT
FILEDELETE FILTER FRAME IMAGECLICK IMAGESEARCH ONCERTIFICATEDIALOG ONDIALOG ONDOWNLOAD
ONERRORDIALOG ONLOGIN ONPRINT ONSECURITYDIALOG ONWEBPAGEDIALOG PAUSE PRINT PROMPT PROXY
REDIAL REFRESH SAVEAS SET SIZE STOPWATCH TAB TAG URL VERSION WAIT WINCLICK</Keywords>
<Keywords name="Words2">GOTO T POS TYPE FORM ATTR CONTENT BUILD RECORDER
EXTRACT CLOSEALLOTHERS FOLDER FILE CLICK X Y CMD STATUS F IMAGE CONFIDENCE C BUTTON
CONTINUE USER PASSWORD KEYS ADDRESS BYPASS ISP ID SECONDS</Keywords>
<Keywords name="Words3">!DATASOURCE !DATASOURCE_COLUMNS !DATASOURCE_LINE
!DIALOGMANAGER !ENCRYPTION !ERRORIGNORE !ERRORMACRO !EXTRACT !EXTRACT_TEST_POPUP
!EXTRACTADD !EXTRACTDIALOG !FILELOG !FILESTOPWATCH !FOLDERIMACROS !IMAGEX !IMAGEY
!LOADCHECK !LOOP !MACROTIMEOUT !NOW !POINTER !REPLAYSPEED !SINGLESTEP !STOPWATCHTIME
!TIMEOUT !URLCURRENT !URLSTART !USERAGENT !VAR1 !VAR2 !VAR3 !VARDEFAULT</Keywords>
<Keywords name="Words4">!COL</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF"
fontName="" fontStyle="0" />
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF"
fontName="" fontStyle="0" />
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF"
fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF"
fontName="" fontStyle="1" />
<WordsStyle name="KEYWORD2" styleID="6" fgColor="800000" bgColor="FFFFFF"
fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD3" styleID="7" fgColor="8000FF" bgColor="FFFFFF"
fontName="" fontStyle="2" />
<WordsStyle name="KEYWORD4" styleID="8" fgColor="8000FF" bgColor="FFFFFF"
fontName="" fontStyle="0" />
<WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF"
fontName="" fontStyle="0" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF"
fontName="" fontStyle="0" />
<WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF"
fontName="" fontStyle="0" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF"
fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER1" styleID="14" fgColor="000000" bgColor="FFFFFF"
fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF"
fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF"
fontName="" fontStyle="0" />
</Styles>
</UserLang>
</NotepadPlus>