Skip to Content.
Sympa Menu

k-user - [K-user] K syntax highlighting for Notepad++

k-user AT lists.cs.illinois.edu

Subject: K-user mailing list

List archive

[K-user] K syntax highlighting for Notepad++


Chronological Thread 
  • From: Omar Duhaiby <3omarz AT gmail.com>
  • To: "k-user AT cs.uiuc.edu" <k-user AT cs.uiuc.edu>
  • Subject: [K-user] K syntax highlighting for Notepad++
  • Date: Sat, 22 Nov 2014 15:43:28 +0300
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
  • List-id: <k-user.cs.uiuc.edu>



Hello,
I would like to share a syntax highlighting definition for Notepad++ (attached) that I made.
Improvements and feedback are highly appreciated.

Thank you
<NotepadPlus>
    <UserLang name="K" ext="k" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
            <Prefix Keywords1="no" Keywords2="no" 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">=/=String ==String &lt;=String &gt;=String &lt;String &gt;String +String =/=Float ==Float &lt;=Float &gt;=Float &lt;Float &gt;Float +Float -Float *Float /Float =/=Int ==Int &lt;=Int &gt;=Int &lt;Int &gt;Int +Int -Int *Int /Int %Int =/=Set ==Set +Set -Set =/=K ==K ::= -/- |-&gt; ... ~&gt; =&gt; = | / : &gt; , . _</Keywords>
            <Keywords name="Operators2"></Keywords>
            <Keywords name="Folders in code1, open">module kmod</Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close">endmodule endkm</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">syntax&#x000D;&#x000A;including&#x000D;&#x000A;imports&#x000D;&#x000A;sort&#x000D;&#x000A;op&#x000D;&#x000A;subsort&#x000D;&#x000A;rule&#x000D;&#x000A;eq&#x000D;&#x000A;ceq&#x000D;&#x000A;load&#x000D;&#x000A;notBool&#x000D;&#x000A;andBool&#x000D;&#x000A;orBool&#x000D;&#x000A;when&#x000D;&#x000A;keys&#x000D;&#x000A;in&#x000D;&#x000A;context&#x000D;&#x000A;configuration&#x000D;&#x000A;</Keywords>
            <Keywords name="Keywords2">binder&#x000D;&#x000A;left&#x000D;&#x000A;right&#x000D;&#x000A;strict&#x000D;&#x000A;seqstrict&#x000D;&#x000A;bracket&#x000D;&#x000A;true&#x000D;&#x000A;false&#x000D;&#x000A;non-assoc&#x000D;&#x000A;notInRules&#x000D;&#x000A;superheat&#x000D;&#x000A;supercool&#x000D;&#x000A;prefer&#x000D;&#x000A;macro&#x000D;&#x000A;structural&#x000D;&#x000A;klabel&#x000D;&#x000A;klatex&#x000D;&#x000A;onlyLabel&#x000D;&#x000A;hook&#x000D;&#x000A;function&#x000D;&#x000A;transition&#x000D;&#x000A;priority&#x000D;&#x000A;priorities&#x000D;&#x000A;anywhere</Keywords>
            <Keywords name="Keywords3">KResult&#x000D;&#x000A;List&#x000D;&#x000A;Int&#x000D;&#x000A;Bool&#x000D;&#x000A;Float&#x000D;&#x000A;String&#x000D;&#x000A;Id&#x000D;&#x000A;$PGM&#x000D;&#x000A;$STATE&#x000D;&#x000A;Map&#x000D;&#x000A;NeList&#x000D;&#x000A;Lexer&#x000D;&#x000A;Token&#x000D;&#x000A;Set&#x000D;&#x000A;Bag</Keywords>
            <Keywords name="Keywords4">BUILTIN-SYNTAX-HOOKS&#x000D;&#x000A;BUILTIN-HOOKS&#x000D;&#x000A;SUBSTITUTION&#x000D;&#x000A;PATTERN-MATCHING</Keywords>
            <Keywords name="Keywords5">require&#x000D;&#x000A;isMatching&#x000D;&#x000A;getMatching&#x000D;&#x000A;lengthString&#x000D;&#x000A;chrChar&#x000D;&#x000A;ordChar&#x000D;&#x000A;substrString&#x000D;&#x000A;subString&#x000D;&#x000A;findSting&#x000D;&#x000A;rfindString&#x000D;&#x000A;String2Int&#x000D;&#x000A;Int2String&#x000D;&#x000A;categoryChar&#x000D;&#x000A;directionalityChar&#x000D;&#x000A;fresh&#x000D;&#x000A;ListItem&#x000D;&#x000A;SetItem&#x000D;&#x000A;BagItem</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="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" fgColor="808000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" fgColor="808000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="NUMBERS" fgColor="808000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS2" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS3" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS4" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS5" fgColor="0000A0" 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="000080" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" fgColor="0000FF" 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="808080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS2" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" />
            <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="117702655" />
            <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="117702655" />
            <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="117702655" />
            <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="46FFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="A8FFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>


  • [K-user] K syntax highlighting for Notepad++, Omar Duhaiby, 11/22/2014

Archive powered by MHonArc 2.6.16.

Top of Page