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.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Re: iMacro script syntax highlighting in Notepad++ editor

by zenoGlitch on Sun Sep 22, 2013 4: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
zenoGlitch
 
Posts: 3
Joined: Thu Nov 25, 2010 10:04 pm

Re: iMacro script syntax highlighting in Notepad++ editor

by artistdedigital on Wed Mar 05, 2014 7:19 pm

This works so good...Thanks a lot...cheers... :mrgreen:
artistdedigital
 
Posts: 7
Joined: Sun Feb 16, 2014 6:02 pm

Re: iMacro script syntax highlighting in Notepad++ editor

by petr on Tue Mar 18, 2014 11:40 am

Is there any syntax highlighting for Sublime Text 3?
petr
 
Posts: 53
Joined: Thu Jun 27, 2013 2:19 pm

Re: iMacro script syntax highlighting in Notepad++ editor

by chivracq on Tue Mar 18, 2014 3: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 4: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...
chivracq
 
Posts: 6474
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: iMacro script syntax highlighting in Notepad++ editor

by petr on Wed Mar 26, 2014 2: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.
petr
 
Posts: 53
Joined: Thu Jun 27, 2013 2:19 pm

Re: iMacro script syntax highlighting in Notepad++ editor

by rdavidson1911 on Wed Jul 16, 2014 11:05 pm

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
rdavidson1911
 
Posts: 1
Joined: Sun Jul 13, 2014 8:08 pm

Re: iMacro script syntax highlighting in Notepad++ editor

by Withful on Sat Aug 16, 2014 1: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.
Withful
 
Posts: 3
Joined: Sat Aug 16, 2014 1:44 am

Re: iMacro script syntax highlighting in Notepad++ editor

by JonnyDee on Mon May 11, 2015 11:32 am

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
JonnyDee
 
Posts: 17
Joined: Tue Jun 10, 2014 9:51 am

Re: iMacro script syntax highlighting in Notepad++ editor

by Cobra99 on Mon May 18, 2015 1: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
Cobra99
 
Posts: 64
Joined: Wed Dec 24, 2014 5:17 pm

Re: iMacro script syntax highlighting in Notepad++ editor

by chivracq on Tue May 19, 2015 9:25 am

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">{ } + &lt; = &gt;</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...
chivracq
 
Posts: 6474
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: iMacro script syntax highlighting in Notepad++ editor

by AdaBrown on Wed Aug 05, 2015 8:48 pm

Thanks for the tutorial, especially for the important part.
BOC Sciences Inhibitors http://www.bocsci.com/InhibitorProducts.asp
AdaBrown
 
Posts: 1
Joined: Wed Aug 05, 2015 8:23 pm

Re: iMacro script syntax highlighting in Notepad++ editor

by serbeer on Thu Jul 14, 2016 3:18 pm

Does anyone has iim syntax highlighting file for UltraEdit folks? If so, please post.
Thanks!
serbeer
 
Posts: 35
Joined: Thu Sep 10, 2015 10:36 pm

Re: iMacro script syntax highlighting in Notepad++ editor

by chivracq on Tue Aug 16, 2016 7:51 am

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">{ } + &lt; = &gt;</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 181 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...
chivracq
 
Posts: 6474
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: iMacro script syntax highlighting in Notepad++ editor

by Lightja on Tue Aug 30, 2016 3: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
Lightja
 
Posts: 20
Joined: Mon Aug 29, 2016 8:40 pm

Re: iMacro script syntax highlighting in Notepad++ editor

by chivracq on Thu Sep 01, 2016 9:53 am

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...
chivracq
 
Posts: 6474
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

PreviousNext

Return to General Support & Discussions

Who is online

Users browsing this forum: poripk and 13 guests

-->