iMacro script syntax highlighting in Notepad++ editor

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
zenoGlitch
Posts: 3
Joined: Fri Nov 26, 2010 5:04 am

Re: iMacro script syntax highlighting in Notepad++ editor

Post by zenoGlitch » Sun Sep 22, 2013 11:28 pm

Here is a quick tutorial for mac users wishing to add in syntax highlighting to text wrangler ... http://www.ogre3d.org/tikiwiki/tiki-ind ... xtWrangler

Would be nice if iOpus provided the needed xml files for the conversion ;)
Image
artistdedigital
Posts: 7
Joined: Mon Feb 17, 2014 1:02 am

Re: iMacro script syntax highlighting in Notepad++ editor

Post by artistdedigital » Thu Mar 06, 2014 2:19 am

This works so good...Thanks a lot...cheers... :mrgreen:
petr
Posts: 53
Joined: Thu Jun 27, 2013 9:19 pm

Re: iMacro script syntax highlighting in Notepad++ editor

Post by petr » Tue Mar 18, 2014 6:40 pm

Is there any syntax highlighting for Sublime Text 3?
chivracq
Posts: 8140
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: iMacro script syntax highlighting in Notepad++ editor

Post by chivracq » Tue Mar 18, 2014 10:33 pm

petr wrote:Is there any syntax highlighting for Sublime Text 3?
Short Answer: I don't think so...

Longer Answer: I was about to install Sublime Text 3 a few weeks ago (because, as I've mentioned in some other Thread, the iMacros Editor is very-very slow with long Scripts (4000+ Lines) when doing extensive Find&Replace (10 sec per Item) on a PC with little RAM (512Mb), but I got another Laptop with more RAM and I can work with it, so I didn't install ST3 in the end...).

But I remember that Syntax Highlighting for iMacros was the first thing I checked with ST3 and it was not supported but I remember having a look at how the customized Language Syntax Files work and thinking that it wouldn't be difficult to port the Syntax File for Notepad++ to ST3.
Last edited by chivracq on Thu Mar 27, 2014 11:41 am, edited 1 time in total.
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
petr
Posts: 53
Joined: Thu Jun 27, 2013 9:19 pm

Re: iMacro script syntax highlighting in Notepad++ editor

Post by petr » Wed Mar 26, 2014 9:14 pm

Thanks chivracq for your answer. I'll try to see if I can make syntax highlighting in ST3 work using your suggestion, importing the syntax file from Notepad++, maybe I'll get it to work.
rdavidson1911
Posts: 1
Joined: Mon Jul 14, 2014 3:08 am

Re: iMacro script syntax highlighting in Notepad++ editor

Post by rdavidson1911 » Thu Jul 17, 2014 6:05 am

Wow! This is a really great tool. I cannot wait to being using it. Thank you for creating it. Hopefully one day I can return the favor. :D
Withful
Posts: 3
Joined: Sat Aug 16, 2014 8:44 am

Re: iMacro script syntax highlighting in Notepad++ editor

Post by Withful » Sat Aug 16, 2014 8:47 am

This is a very interesting article. The information is well researched and highly
informative. I love the way the topic are choose. They are so useful in our
day to day life.By the way, I found this post shared on www.toptrafficsafty.com/ . took the licence and made a couple of minor edits in your file.
JonnyDee
Posts: 17
Joined: Tue Jun 10, 2014 4:51 pm

Re: iMacro script syntax highlighting in Notepad++ editor

Post by JonnyDee » Mon May 11, 2015 6:32 pm

petr wrote:Thanks chivracq for your answer. I'll try to see if I can make syntax highlighting in ST3 work using your suggestion, importing the syntax file from Notepad++, maybe I'll get it to work.

Im just getting into the ST environment .... did you create the setup to use iMacros sytax highlighting with it?

IF yes, please share ... :wink:

TIA!
Jon
Cobra99
Posts: 64
Joined: Thu Dec 25, 2014 12:17 am

Re: iMacro script syntax highlighting in Notepad++ editor

Post by Cobra99 » Mon May 18, 2015 8:20 pm

Does anyone have a current iMacros colour scheme for Notepad++?
VERSION BUILD=8820413 RECORDER=FX, WIN7 64-bit SK, Pale Moon 25.8.1(x86)
FCIM here http://forum.imacros.net/viewtopic.php?f=20&t=3331
chivracq
Posts: 8140
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: iMacro script syntax highlighting in Notepad++ editor

Post by chivracq » Tue May 19, 2015 4:25 pm

Cobra99 wrote:Does anyone have a current iMacros colour scheme for Notepad++?
I think this the one I was using 2 years ago with Notepad++:

Code: Select all

<NotepadPlus>
    <UserLang name="iMacros" ext="IIM" udlVersion="2.0">
        <Settings>
            <Global caseIgnored="no" allowFoldOfComments="no" forceLineCommentsAtBOL="no" foldCompact="no" />
			<TreatAsSymbol comment="no" commentLine="yes" />
            <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="yes" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments" id="0">1 1 2 2 0&apos;</Keywords>
            <Keywords name="Numbers, additional" id="1"></Keywords>
            <Keywords name="Numbers, prefixes" id="2"></Keywords>
            <Keywords name="Numbers, extras with prefixes" id="3"></Keywords>
            <Keywords name="Numbers, suffixes" id="4"></Keywords>
            <Keywords name="Operators1" id="5">{ } + < = ></Keywords>
            <Keywords name="Operators2" id="6">&& *</Keywords>
            <Keywords name="Folders in code1, open" id="7"></Keywords>
            <Keywords name="Folders in code1, middle" id="8"></Keywords>
            <Keywords name="Folders in code1, close" id="9"></Keywords>
            <Keywords name="Folders in code2, open" id="10"></Keywords>
            <Keywords name="Folders in code2, middle" id="11"></Keywords>
            <Keywords name="Folders in code2, close" id="12"></Keywords>
            <Keywords name="Folders in comment, open" id="13"></Keywords>
            <Keywords name="Folders in comment, middle" id="14"></Keywords>
            <Keywords name="Folders in comment, close" id="15"></Keywords>
            <Keywords name="Keywords1" id="16">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="Keywords2" id="17">OPEN CLOSE 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="Keywords3" id="18">!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="Keywords4" id="19">!COL</Keywords>
            <Keywords name="Keywords5" id="20"></Keywords>
            <Keywords name="Keywords6" id="21"></Keywords>
            <Keywords name="Keywords7" id="22"></Keywords>
            <Keywords name="Keywords8" id="23"></Keywords>
            <Keywords name="Delimiters" id="24">000000</Keywords>
        </KeywordLists>
		<Styles>
            <WordsStyle name="DEFAULT" styleID="0" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" styleID="1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" styleID="2" fgColor="008000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="NUMBERS" styleID="3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" styleID="4" fgColor="0000FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS2" styleID="5" fgColor="FF0000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS3" styleID="6" fgColor="8000FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS4" styleID="7" fgColor="8000FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS5" styleID="8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS6" styleID="9" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS7" styleID="10" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" styleID="11" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" styleID="12" fgColor="008800" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" styleID="13" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" styleID="14" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" styleID="15" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" styleID="16" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS2" styleID="17" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" styleID="18" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" styleID="19" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" styleID="20" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS6" styleID="21" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" styleID="22" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" styleID="23" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>
Save it as a .XML File... (I had customized it..., but I don't have Notepad++ installed anymore (other PC since), so I cannot check its Content...) I've been using the Standard Editor with iMacros for FF since, and sometimes the one that comes with iMacros for IE... and I did install ST3 a few months ago but didn't really dig into it nor really use it...
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
AdaBrown
Posts: 1
Joined: Thu Aug 06, 2015 3:23 am
Contact:

Re: iMacro script syntax highlighting in Notepad++ editor

Post by AdaBrown » Thu Aug 06, 2015 3:48 am

Thanks for the tutorial, especially for the important part.
BOC Sciences Inhibitors http://www.bocsci.com/InhibitorProducts.asp
serbeer
Posts: 44
Joined: Fri Sep 11, 2015 5:36 am

Re: iMacro script syntax highlighting in Notepad++ editor

Post by serbeer » Thu Jul 14, 2016 10:18 pm

Does anyone has iim syntax highlighting file for UltraEdit folks? If so, please post.
Thanks!
chivracq
Posts: 8140
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: iMacro script syntax highlighting in Notepad++ editor

Post by chivracq » Tue Aug 16, 2016 2:51 pm

serbeer wrote:Does anyone has iim syntax highlighting file for UltraEdit folks? If so, please post.
Thanks!
I don't know how UltraEdit works but here is the "raw" Content of my "personal" 'Notepad++ iMacros UDL.xml' File I was using when I was using Notepad++ (pfff, quite a few years ago now, I switched to the iMacros Internal Editor around iMacros for FF v8.x or v8.3.x I think, as the EVENT Mode Keywords/Commands are missing, you'll need to add them yourself...).

Notepad++ iMacros UDL.xml:

Code: Select all

<NotepadPlus>
    <UserLang name="iMacros" ext="IIM" udlVersion="2.0">
        <Settings>
            <Global caseIgnored="no" allowFoldOfComments="no" forceLineCommentsAtBOL="no" foldCompact="no" />
			<TreatAsSymbol comment="no" commentLine="yes" />
            <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="yes" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments" id="0">1 1 2 2 0&apos;</Keywords>
            <Keywords name="Numbers, additional" id="1"></Keywords>
            <Keywords name="Numbers, prefixes" id="2"></Keywords>
            <Keywords name="Numbers, extras with prefixes" id="3"></Keywords>
            <Keywords name="Numbers, suffixes" id="4"></Keywords>
            <Keywords name="Operators1" id="5">{ } + < = ></Keywords>
            <Keywords name="Operators2" id="6">&& *</Keywords>
            <Keywords name="Folders in code1, open" id="7"></Keywords>
            <Keywords name="Folders in code1, middle" id="8"></Keywords>
            <Keywords name="Folders in code1, close" id="9"></Keywords>
            <Keywords name="Folders in code2, open" id="10"></Keywords>
            <Keywords name="Folders in code2, middle" id="11"></Keywords>
            <Keywords name="Folders in code2, close" id="12"></Keywords>
            <Keywords name="Folders in comment, open" id="13"></Keywords>
            <Keywords name="Folders in comment, middle" id="14"></Keywords>
            <Keywords name="Folders in comment, close" id="15"></Keywords>
            <Keywords name="Keywords1" id="16">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="Keywords2" id="17">OPEN CLOSE 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="Keywords3" id="18">!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="Keywords4" id="19">!COL</Keywords>
            <Keywords name="Keywords5" id="20"></Keywords>
            <Keywords name="Keywords6" id="21"></Keywords>
            <Keywords name="Keywords7" id="22"></Keywords>
            <Keywords name="Keywords8" id="23"></Keywords>
            <Keywords name="Delimiters" id="24">000000</Keywords>
        </KeywordLists>
		<Styles>
            <WordsStyle name="DEFAULT" styleID="0" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" styleID="1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" styleID="2" fgColor="008000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="NUMBERS" styleID="3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" styleID="4" fgColor="0000FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS2" styleID="5" fgColor="FF0000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS3" styleID="6" fgColor="8000FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS4" styleID="7" fgColor="8000FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS5" styleID="8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS6" styleID="9" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS7" styleID="10" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" styleID="11" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" styleID="12" fgColor="008800" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" styleID="13" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" styleID="14" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" styleID="15" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" styleID="16" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS2" styleID="17" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" styleID="18" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" styleID="19" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" styleID="20" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS6" styleID="21" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" styleID="22" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" styleID="23" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>

And I'll attach it to this Thread...

Hum, yep, it's pretty old indeed, many Commands are missing. like most '!TIMEOUT_xxx' Commands for example I notice..., but that's already a good starting point, I would think...
Re-upload your Version to the Thread once you'll have completed it, that could be useful for other Users...
Attachments
Notepad++ iMacros UDL.zip
(1.46 KiB) Downloaded 322 times
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
Lightja
Posts: 20
Joined: Tue Aug 30, 2016 3:40 am

Re: iMacro script syntax highlighting in Notepad++ editor

Post by Lightja » Tue Aug 30, 2016 10:28 pm

Just want to express my gratitude to those who built these .xml files. Great work!

Also, for anyone using Windows 10, your userDefineLang.xml file can be found at "C:\Users\Username\AppData\Roaming\Notepad++"
Latest System Information:
iMacros 11.1
Windows 10 Enterprise
Firefox v48.0.2 - iMacros for Firefox v8.9.7
Chrome v53.0.2785.89 - iMacros for Chrome v8.4.4
chivracq
Posts: 8140
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: iMacro script syntax highlighting in Notepad++ editor

Post by chivracq » Thu Sep 01, 2016 4:53 pm

Lightja wrote:Just want to express my gratitude to those who built these .xml files. Great work!

Also, for anyone using Windows 10, your userDefineLang.xml file can be found at "C:\Users\Username\AppData\Roaming\Notepad++"
You're welcome,ah-ah...!
But mine is a bit old already, I switched around v8.0/3 which must be some 5 years ago to the iMacros Editor (for FF) and didn't maintain it anymore...

Hum, a bit surprised btw not to get any Reaction from @serbeer who was asking for a working XML Sample...!? :shock:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
Post Reply