Skip to content

Instantly share code, notes, and snippets.

@stpettersens
Last active February 17, 2026 21:41
Show Gist options
  • Select an option

  • Save stpettersens/6d047045f0f03deac8a334fc2a3a5791 to your computer and use it in GitHub Desktop.

Select an option

Save stpettersens/6d047045f0f03deac8a334fc2a3a5791 to your computer and use it in GitHub Desktop.
C3 Programming Language User Defined Language (UDL) XML for Notepad++ - WIP
<NotepadPlus>
<UserLang name="C3" ext="c3" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="1" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="no" Keywords5="yes" 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"></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">module&#x000D;&#x000A;import&#x000D;&#x000A;fn&#x000D;&#x000A;false&#x000D;&#x000A;false;&#x000D;&#x000A;true&#x000D;&#x000A;true;&#x000D;&#x000A;struct&#x000D;&#x000A;return&#x000D;&#x000A;if&#x000D;&#x000A;else&#x000D;&#x000A;enum&#x000D;&#x000A;typedef&#x000D;&#x000A;alias&#x000D;&#x000A;extern&#x000D;&#x000A;const&#x000D;&#x000A;defer&#x000D;&#x000A;for&#x000D;&#x000A;foreach&#x000D;&#x000A;continue&#x000D;&#x000A;continue;&#x000D;&#x000A;break&#x000D;&#x000A;break;&#x000D;&#x000A;null&#x000D;&#x000A;null;&#x000D;&#x000A;while&#x000D;&#x000A;</Keywords>
<Keywords name="Keywords2">void&#x000D;&#x000A;String&#x000D;&#x000A;String;&#x000D;&#x000A;String?&#x000D;&#x000A;String[]&#x000D;&#x000A;DString&#x000D;&#x000A;DString[]&#x000D;&#x000A;byte&#x000D;&#x000A;byte[]&#x000D;&#x000A;bool&#x000D;&#x000A;int&#x000D;&#x000A;uint&#x000D;&#x000A;short&#x000D;&#x000A;ushort&#x000D;&#x000A;String,&#x000D;&#x000A;HashMap&#x000D;&#x000A;File&#x000D;&#x000A;List&#x000D;&#x000A;char[]&#x000D;&#x000A;char[];&#x000D;&#x000A;char[]*&#x000D;&#x000A;char&#x000D;&#x000A;char*&#x000D;&#x000A;char**&#x000D;&#x000A;ulong&#x000D;&#x000A;long&#x000D;&#x000A;usz&#x000D;&#x000A;</Keywords>
<Keywords name="Keywords3">bool&#x000D;&#x000A;0x&#x000D;&#x000A;</Keywords>
<Keywords name="Keywords4">Bytes&#x000D;&#x000A;Id&#x000D;&#x000A;RedisRecord&#x000D;&#x000A;RedisRecord?&#x000D;&#x000A;RedisRecords&#x000D;&#x000A;R3disFormatHeader&#x000D;&#x000A;R3disFormatBody&#x000D;&#x000A;R3disFormatData&#x000D;&#x000A;RecordsOffset&#x000D;&#x000A;RecordParsing&#x000D;&#x000A;</Keywords>
<Keywords name="Keywords5">$$bswap&#x000D;&#x000A;</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&apos; 10 11&apos; 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="COMMENTS" fgColor="008000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontStyle="7" nesting="0" />
<WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS1" fgColor="0000FF" bgColor="FFFFFF" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS2" fgColor="8080FF" bgColor="FFFFFF" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS3" fgColor="804000" bgColor="FFFFFF" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS4" fgColor="FF00FF" bgColor="FFFFFF" fontStyle="5" nesting="0" />
<WordsStyle name="KEYWORDS5" fgColor="804000" bgColor="FFFFFF" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS1" fgColor="800000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS2" fgColor="800000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS3" fgColor="8000FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS4" fgColor="800000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
</Styles>
</UserLang>
</NotepadPlus>
@stpettersens
Copy link
Author

stpettersens commented Feb 17, 2026

Please note this is a work in progress (WIP) and includes keywords for custom structs for my personal projects in the 4th keywords group, which you may wish to remove after import into Notepad++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment