Notepad++ and GXS AI models

As you probably know, often GXS AI developer use 3rd party editors when working with the models (instead of Workbench). My colleagues use Notepad++ with a “plugin” (User Defined Language) developed by Igor Nechaev:

notepad plus gxs ai

it highlights used constructions, allows to to collapse/expand blocks of code, helps you to comment/uncomment blocks of code and so on.

Here is the code of this “plugin” (User Defined Language):

<NotepadPlus>
    <UserLang name="GXS AI" ext="mdl" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
            <Prefix Keywords1="yes" Keywords2="yes" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments">00; 01 02 03; 04</Keywords>
            <Keywords name="Numbers, prefix1">@</Keywords>
            <Keywords name="Numbers, prefix2"></Keywords>
            <Keywords name="Numbers, extras1"></Keywords>
            <Keywords name="Numbers, extras2"></Keywords>
            <Keywords name="Numbers, suffix1">,</Keywords>
            <Keywords name="Numbers, suffix2"></Keywords>
            <Keywords name="Numbers, range"></Keywords>
            <Keywords name="Operators1">[ ] = APPEND BASE_YEAR CHAR_CNT CLOSE_INPUT CONDITIONAL COPY DATE_2000 DATE_CALC DATE_DIFF DATE_FMT DECIMAL_CHAR DEF_LKUP DEFAULT_NULL DEL_LKUP DEL_SUBS DEL_XREF DIR DM_CLOSE DM_DELETE DM_READ DM_READNXT DM_START DM_UNLOCK DM_WRITE DMI_INFO ENVIRON_LD ERR_LOG ERRCODE FILE_STAT FIND_SESSION GET_ARRAY GET_DECIMAL GET_ECOUNT GET_EVAR GET_FIFTH_DELIM GET_FILEPOS GET_FIRST_DELIM GET_FOURTH_DELIM GET_GCOUNT GET_RELEASE GET_SECOND_DELIM GET_THIRD_DELIM GREGORIAN_DATE LAST_CONTAINER LAST_DEFINING LAST_GROUP LAST_IDX LAST_MATCH LAST_OBJECT LAST_TAG LAST_TRUNC LKUP LOG_REC NAME_TOCODE NEXT_TSID NOT_NULL NUMTRIM NXT_SDB ORDINAL_DATE PRESENT READ_SUBS READ_SUBS_LOCK RECV_SMSG REMOVE RENAME SEND_SMSG SET_ARRAY SET_CHARSET SET_DECIMAL SET_ECOUNT SET_EOF SET_EVAR SET_FIFTH_DELIM SET_FILEPOS SET_FIRST_DELIM SET_FOURTH_DELIM SET_GCOUNT SET_LKUP SET_RELEASE SET_SECOND_DELIM SET_SUBS SET_THIRD_DELIM SET_XREF SORT_ARRAY SQL_AUTOCOMMIT SQL_COMMIT SQL_CONNECT SQL_DISCONNECT SQL_EXECUTE SQL_EXECUTEDIR SQL_FREESTMT SQL_GET SQL_GETERR SQL_LOG SQL_PUT SQL_ROLLBACK SQL_SETSTMT STRCAT STRCATM STRFILL STRLEN STRLOWER STRPOS STRREPL STRSUBS STRSUBSM STRT_SDB STRTRIM STRUPPER SYSTEM_DATE SYSTEM_TIME SYSTEM_TYPE UNLOCK_SUBS XREF , ( )</Keywords>
            <Keywords name="Operators2"></Keywords>
            <Keywords name="Folders in code1, open">{</Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close">}*</Keywords>
            <Keywords name="Folders in code2, open"></Keywords>
            <Keywords name="Folders in code2, middle"></Keywords>
            <Keywords name="Folders in code2, close"></Keywords>
            <Keywords name="Folders in comment, open"></Keywords>
            <Keywords name="Folders in comment, middle"></Keywords>
            <Keywords name="Folders in comment, close"></Keywords>
            <Keywords name="Keywords1">VAR-&gt;</Keywords>
            <Keywords name="Keywords2">ARRAY-&gt;</Keywords>
            <Keywords name="Keywords3"></Keywords>
            <Keywords name="Keywords4"></Keywords>
            <Keywords name="Keywords5"></Keywords>
            <Keywords name="Keywords6"></Keywords>
            <Keywords name="Keywords7"></Keywords>
            <Keywords name="Keywords8"></Keywords>
            <Keywords name="Delimiters">00&quot; 01 02&quot; 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" fgColor="DCDCCC" bgColor="3F3F3F" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" fgColor="808000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" fgColor="808000" bgColor="3F3F3F" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="NUMBERS" fgColor="7F9F7F" bgColor="3F3F3F" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" fgColor="8C8CFF" bgColor="3F3F3F" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS2" fgColor="8C8CFF" bgColor="3F3F3F" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS3" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" fgColor="C6C6FF" bgColor="3F3F3F" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" fgColor="D60A42" bgColor="3F3F3F" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" fgColor="FF80FF" bgColor="3F3F3F" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS2" fgColor="D59FD5" bgColor="3F3F3F" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>

to add it to Notepad++,

1. Save this XML as gxsai.xml for example
2. Go to Notepad++, Language – Define your language… and import this gxsai.xml.
3. Usage with Settings – Style Configuration – Zenburn recommended.
4. Switch Notepad++ to Window/DOS format

Gennady Kim

Advertisements

4 thoughts on “Notepad++ and GXS AI models

  1. Hi Kim,

    Looking for some urgent help……….

    We need to migrate GXS AI5.0 to GXS AI5.3 version. I have no clue on how to go about the migration.. Also.. i do not have any cd for 5.3 or any documentation… and i am supposed to provide the approach, implementation plan and other misc details for this activity.

    Kindly help or guide me to the right person who can help me on this.

    • Hi,

      I don’t know much about migration between 5* versions. For me they are pretty similar to each other. The only thing I can remember is that there are some additional functions in XSLT in 5.2+. So…

    • Vijay,

      You need to take the backup of TG,models,att,.inc files and need to import into new 5.3 version.

      Let me know if you need any other help.

      Thanks
      Siva

  2. Hi Vijay,

    I agree with Siva. When we migrated a project from 5.2 to 5.3 we just moved the map files (.mdl , .inc, .acc etc.) to the models directory of 5.3. But if you have updated some system models for your requirements you should also move it to 5.3’s system models.

    Regards,
    JC

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s