12 Replies Latest reply on Feb 11, 2020 8:55 AM by Patrick Mischler

    Notepad++ baroc and mrl syntax

      Share This:

      For interested I attach baroc and mrl syntax definition. Have fun :)

      Notepad++ site: http://notepad-plus.sourceforge.net/

        • 1. RE: Notepad++ baroc and mrl syntax

          For fun I am attaching my Ultraedit wordfile. I love UltrEdit

          I have not tried notepad-plus.



          http://www.ultraedit.com/index.php?name=UE_MoreFeatures


          John

          • 2. Re: Notepad++ baroc and mrl syntax

            A slightly different take on Notepad++ language definitions, which allow for collapsing of rules, and includes primitive and function definitions.

             

            Enjoy!

             

            Message was edited by: carslone Well... it doesn't seem to let me upload. I'll try to sort things out and post it later.

            • 3. Re: Notepad++ baroc and mrl syntax

              Just wanted to say thanks for the files. I use N++ for all my MRL and Baroc editing.

              • 4. Re: Notepad++ baroc and mrl syntax

                Do you know if there is a Developer guide and/or syntax manual

                • 5. Re: Notepad++ baroc and mrl syntax

                  How do you activate or load that userDefineLang.xml into Notepad++.

                  Do I need to just copy it to a particular directory where I installed Notepad++?
                  Thanks,

                  Gib

                  • 6. Re: Notepad++ baroc and mrl syntax

                    If you're running on a Windows machine, just paste it inside the following folder:

                     

                    C:\Documents and Settings\{username}\Application Data\Notepad++

                     

                    (You can also just use the %APPDATA% environment variable to navigate to it, and then go to the Notepad++ subdirectory).

                     

                    Stop Notepad++, restart it, and you're set!

                     

                     

                     

                    Carlos.

                    • 7. Re: Notepad++ baroc and mrl syntax

                      Hi Carlos,

                       

                      Putting that userdefinelang.xml in C:\Documents and Settings\{username}\Application Data\Notepad++  didn't work for me.  But that might be because I installed Notepad++ into a separate directory:  C:\notepad++

                       

                      I finally just tried putting the userdefinelang.xml file in the directories under C:\notepad++, and of course the second one I tried worked!! I put it in C:\NotePad++\ansi.  Then I opened a .mrl file, and it picked the language right up.  I also now have Baroc on the language list.

                       

                      Thanks for your help,

                      Gib.

                      • 8. Re: Notepad++ baroc and mrl syntax

                        Well.... I was unable to post my Notepad++ definitions as an attachment for some reason, so here is the actual code.  You can copy and paste it into a text file and name the file userDefineLang.xml

                         

                         

                        Carlos.

                         

                         

                        <NotepadPlus>
                            <UserLang name="MRL" ext="mrl">
                                <Settings>
                                    <Global caseIgnored="yes" />
                                    <TreatAsSymbol comment="no" commentLine="yes" />
                                    <Prefix words1="no" words2="no" words3="no" words4="yes" />
                                </Settings>
                                <KeywordLists>
                                    <Keywords name="Delimiters">&quot;&apos;0&quot;&apos;0</Keywords>
                                    <Keywords name="Folder+">refine filter regulate new abstract correlate execute threshold propagate timer delete collector</Keywords>
                                    <Keywords name="Folder-">END</Keywords>
                                    <Keywords name="Operators">&apos; - ! &quot; ( ) * , : ; [ ] { | } + &lt; = &gt;</Keywords>
                                    <Keywords name="Comment">1 2 0#</Keywords>
                                    <Keywords name="Words1">action if then else where updates duplicate using unless when triggers timer_info index OPEN CLOSED ACK ASSIGNED BLACKOUT CRITICAL MAJOR MINOR WARNING OK HARMLESS INFO UNKNOWN</Keywords>
                                    <Keywords name="Words2">NOT AND OR = == != EQUALS &gt; &lt; GREATER_THAN GREATER_OR_EQUALS SMALLER_OR_EQUALS BETWEEN WITHIN CONTAINS CONTAINED_IN CONTAINS_ONE_OF HAS_PREFIX HAS_SUFFIX MATCHES OUTSIDE SUBCLASS_OF SUPERCLASS_OF IP_MATCHES IP_MATCHED_BY</Keywords>
                                    <Keywords name="Words3">CONFIRM_EXTERNAL GET_EXTERNAL INTTOSTRING INT_TO_HEX REALTOSTRING POINTERTOSTRING STRING CONCAT STRINGTOPOINTER TRUNC INT ROUND INCR DECR STRLEN TOLOWERCASE TOUPPERCASE UPPER STRPART STRNPART STREXTRACT SUBSTRING STRIP STRTOLIST STRMATCH MATCH_REGEX SPRINTF MAPSLOTS TIME_STAMP_TO_STR TIME_EXTRACT TIME_STAMP TIME_STAMP_TO_CIM STR_TO_TIME_STAMP LISTLEN LISTGETELT LISTMEMBER LISTDELETE LISTAPPEND LISTDISJOINT LISTINTERSECT LISTUNION LISTSUBTRACT LISTREMDUP LISTWALK ADD_TO_LIST REM_FROM_LIST FIND_MATCH FIND_MATCH_ENTRY APPLY_MATCH_ENTRY GET_LIST_SLOTVALUES SET_LIST_SLOTVALUES CLASS_PATH RESET_DEFAULT NTADD NTCNT NTGET NTSET OPADD OPCNT OPGET OPGET_TIME OPGET_AUTHOR OPGET_ACTION OPGET_ARGS OPSET RELATE UNRELATE CELLINFO CELLCONTROL KBVERSION GET_ENV SEND_TO SEND_TO_EXT GENERATE_EVENT NEW_DATA REMOVE_DATA DROP_NEW UNSET_CAUSE SET_TIMER SET_TIMER_AT LOWER</Keywords>
                                    <Keywords name="Words4">$</Keywords>
                                </KeywordLists>
                                <Styles>
                                    <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
                                    <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF0000" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="10" />
                                    <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF0000" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="10" />
                                    <WordsStyle name="KEYWORD1" styleID="5" fgColor="FF8040" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" />
                                    <WordsStyle name="KEYWORD2" styleID="6" fgColor="FF0000" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" />
                                    <WordsStyle name="KEYWORD3" styleID="7" fgColor="804040" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" />
                                    <WordsStyle name="KEYWORD4" styleID="8" fgColor="0000FF" 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="Verdana" fontStyle="0" fontSize="8" />
                                    <WordsStyle name="NUMBER" styleID="4" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="1" />
                                    <WordsStyle name="OPERATOR" styleID="10" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" />
                                    <WordsStyle name="DELIMINER1" styleID="14" fgColor="808080" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
                                    <WordsStyle name="DELIMINER2" styleID="15" fgColor="808080" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
                                    <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                                </Styles>
                            </UserLang>
                            <UserLang name="BAROC" ext="baroc">
                                <Settings>
                                    <Global caseIgnored="no" />
                                    <TreatAsSymbol comment="no" commentLine="yes" />
                                    <Prefix words1="no" words2="no" words3="yes" words4="no" />
                                </Settings>
                                <KeywordLists>
                                    <Keywords name="Delimiters">&quot;00&quot;00</Keywords>
                                    <Keywords name="Folder+">DEFINES CLASS</Keywords>
                                    <Keywords name="Folder-">END</Keywords>
                                    <Keywords name="Operators">&apos; &quot; ( ) =</Keywords>
                                    <Keywords name="Comment">1 1 2 2 0#</Keywords>
                                    <Keywords name="Words1">dup_detect yes; no; equals</Keywords>
                                    <Keywords name="Words2">STRING; INTEGER; SINGLE; REAL; LIST_OF_STRING; STRING, INTEGER, SINGLE, REAL, LIST_OF_STRING,</Keywords>
                                    <Keywords name="Words3">default ISA key</Keywords>
                                    <Keywords name="Words4">{ } } [ ] };</Keywords>
                                </KeywordLists>
                                <Styles>
                                    <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                                    <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" />
                                    <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" />
                                    <WordsStyle name="KEYWORD1" styleID="5" fgColor="FF8040" bgColor="FFFFFF" fontName="" fontStyle="1" />
                                    <WordsStyle name="KEYWORD2" styleID="6" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
                                    <WordsStyle name="KEYWORD3" styleID="7" fgColor="B70000" bgColor="FFFFFF" fontName="" fontStyle="1" />
                                    <WordsStyle name="KEYWORD4" styleID="8" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" />
                                    <WordsStyle name="COMMENT" styleID="1" fgColor="008040" bgColor="FFFFFF" fontName="" fontStyle="0" />
                                    <WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="Verdana" fontStyle="0" fontSize="8" />
                                    <WordsStyle name="NUMBER" styleID="4" fgColor="FF0080" bgColor="FFFFFF" fontName="" fontStyle="1" />
                                    <WordsStyle name="OPERATOR" styleID="10" fgColor="FF8040" bgColor="FFFFFF" fontName="" fontStyle="0" />
                                    <WordsStyle name="DELIMINER1" styleID="14" fgColor="C79F45" 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>
                            <UserLang name=".load" ext="load dir conf">
                                <Settings>
                                    <Global caseIgnored="no" />
                                    <TreatAsSymbol comment="no" commentLine="yes" />
                                    <Prefix words1="no" words2="no" words3="no" words4="no" />
                                </Settings>
                                <KeywordLists>
                                    <Keywords name="Delimiters">000000</Keywords>
                                    <Keywords name="Folder+"></Keywords>
                                    <Keywords name="Folder-"></Keywords>
                                    <Keywords name="Operators">&apos; &quot; ( ) :</Keywords>
                                    <Keywords name="Comment">1 2 0#</Keywords>
                                    <Keywords name="Words1"></Keywords>
                                    <Keywords name="Words2"></Keywords>
                                    <Keywords name="Words3"></Keywords>
                                    <Keywords name="Words4"></Keywords>
                                </KeywordLists>
                                <Styles>
                                    <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="1" />
                                    <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" />
                                    <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" />
                                    <WordsStyle name="KEYWORD1" styleID="5" fgColor="FF8040" bgColor="FFFFFF" fontName="" fontStyle="0" />
                                    <WordsStyle name="KEYWORD2" styleID="6" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
                                    <WordsStyle name="KEYWORD3" styleID="7" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                                    <WordsStyle name="KEYWORD4" styleID="8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                                    <WordsStyle name="COMMENT" styleID="1" fgColor="008040" bgColor="FFFFFF" fontName="" fontStyle="0" />
                                    <WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="Verdana" fontStyle="0" fontSize="8" />
                                    <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                                    <WordsStyle name="OPERATOR" styleID="10" fgColor="FF8040" 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>

                        • 9. Re: Notepad++ baroc and mrl syntax

                          For those using PSPad (which I've grown to like more than Notepad++ and am starting to use even more than UltraEdit since it's free and got tired of paying for upgrades), I've uploaded a PSPad highlighter file for BAROC and MRL. The file and instructions can be found here on this site at:

                          http://communities.bmc.com/communities/docs/DOC-6090

                           

                          Enjoy,

                          Kevin

                          • 10. Re: RE: Notepad++ baroc and mrl syntax

                            Hi

                            I am using Notepad++5.6.8 ,and I installed it on d:\software folder, I copied userDefineLang.xml to D:\software\Notepad++, but it didn't work for me, and I didn't find the folder C:\Documents and Settings\{username}\Application Data\Notepad++

                            My os is windows7 , how to configure it?

                            Thanks in advance,

                            Wanfeng

                            • 11. Re: RE: Notepad++ baroc and mrl syntax

                              Hi encina,

                               

                              The other way to do this is to save the userDefineLang.xml file; open notepad++ go to languages --> define your language --> import the file and save as "mrl" or "baroc". Now the file can be viewed as your define language style.

                              • 12. Re: Notepad++ baroc and mrl syntax
                                Patrick Mischler

                                Has someone done this for PSL?