User-defined language setting for Notepad++

"Wang, Glenn" <[email protected]> Tue, 16 Jul 2013 18:33:48 +0000
Newsgroups gmane.comp.web.freemarker.devel
Message-ID <8EB44DF3D89EFC48A90180E5834EB7F8737EA637@CH1PRD0610MB367.namprd06.prod.outlook.com>
Hi,

A couple of years ago, I created some color-coding settings for Notepad++ to work with Freemarker templates.  Now, this is far from complete, but should be a good starting point, and should not be too difficult to modify to include the more recent changes to Freemarker.

To install for Notepad++


1.       Select "Language" > "Define your language..." from the menu bar (if "Define your language" is not available, the version of Notepad++ that's installed is too old, update to a newer version)

2.       Click on the "Import..." button in the "User Defined Language" dialog box that pops up

3.       Open the "Freemarker.xml" file

4.       Restart Notepad++

Glenn

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

_______________________________________________
FreeMarker-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-devel
Freemarker.xml (text/xml, 2.7 KB)
<NotepadPlus>
    <UserLang name="Freemarker" ext="ftl">
        <Settings>
            <Global caseIgnored="no" />
            <TreatAsSymbol comment="no" commentLine="no" />
            <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">! # % ( ) * , / ? { } &lt; = &gt;</Keywords>
            <Keywords name="Comment"> 1-- 2--&gt; 0</Keywords>
            <Keywords name="Words1">list escape as list macro if else elseif false true function return</Keywords>
            <Keywords name="Words2">assign local switch case default break</Keywords>
            <Keywords name="Words3">substring length number lower_case upper_case right_pad left_pad trim cap_first uncap_first capitalize chop_linebreak ends_with html index_of j_string last_index_of contains matches replace rtf url split starts_with word_list is_hash xml</Keywords>
            <Keywords name="Words4">c date datetime time string round floor ceiling</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="00FF40" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FFFF00" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="800000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="0000FF" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="568639" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="8000FF" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="C0C0C0" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="C0C0C0" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="0000FF" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
        </Styles>
    </UserLang>
</NotepadPlus>