Skip to content

Commit 884fb99

Browse files
authored
Fixed Notepad++ XML Syntax (#45)
* Add Notepad++ support * Added README * Fixed XML syntax according to new standard * Changed README
1 parent 649b0c1 commit 884fb99

3 files changed

Lines changed: 61 additions & 33 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Currently available are:
99
- [NeoVim](https://github.com/wstucco/c3.nvim)
1010
- Sublime Text
1111
- Nano
12+
- Notepad++
1213
- Kakoune
1314
- [Zed](https://github.com/AineeJames/c3-zed)
1415
- [Kate](https://kate-editor.org/get-it/)

notepad++/C3.xml

Lines changed: 57 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,65 @@
1+
<?xml version="1.0"?>
12
<NotepadPlus>
2-
<UserLang name="C3" ext="c3 c3i c3t">
3+
<UserLang name="C3" ext="c3 c3i c3t" udlVersion="2.1">
34
<Settings>
4-
<Global caseIgnored="no" />
5-
<TreatAsSymbol comment="yes" commentLine="yes" />
6-
<Prefix words1="no" words2="no" words3="yes" words4="yes" />
5+
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
6+
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="yes" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
77
</Settings>
88
<KeywordLists>
9-
<Keywords name="Folder+">{</Keywords>
10-
<Keywords name="Folder-">}</Keywords>
11-
<Keywords name="Operators">- ! " # $ % &amp; ( ) * , . / : ; ? @ [ \ ] ^ { | } ~ + &lt; = &gt;</Keywords>
12-
<Keywords name="Comment"> 1/* 2*/ 1&lt;* 2*&gt; 0//</Keywords>
13-
<Keywords name="Words1">alias asm assert attrdef bitstruct break case catch const continue def default defer distinct do else enum extern false fault tlocal for foreach foreach_r fn if inline import macro module nextcase null interface return static struct switch true try union var while</Keywords>
14-
<Keywords name="Words2">void bool char double float float16 bfloat int128 ichar int iptr isz long short uint128 uint ulong uptr ushort usz float128 any typeid String ZString WString DString</Keywords>
15-
<Keywords name="Words3">$</Keywords>
16-
<Keywords name="Words4">@</Keywords>
17-
<Keywords name="Delimiter1">" "</Keywords>
18-
<Keywords name="Delimiter2">' '</Keywords>
19-
<Keywords name="Delimiter3">` `</Keywords>
9+
<Keywords name="Comments">00// 01 02 03/* 03&lt;* 04*/ 04*&gt;</Keywords>
10+
<Keywords name="Numbers, prefix1"></Keywords>
11+
<Keywords name="Numbers, prefix2"></Keywords>
12+
<Keywords name="Numbers, extras1"></Keywords>
13+
<Keywords name="Numbers, extras2"></Keywords>
14+
<Keywords name="Numbers, suffix1"></Keywords>
15+
<Keywords name="Numbers, suffix2"></Keywords>
16+
<Keywords name="Numbers, range"></Keywords>
17+
<Keywords name="Operators1">- ! # % &amp; ( ) * , . / : ; ? [ \ ] ^ | ~ + &lt; = &gt;</Keywords>
18+
<Keywords name="Operators2"></Keywords>
19+
<Keywords name="Folders in code1, open">{</Keywords>
20+
<Keywords name="Folders in code1, middle"></Keywords>
21+
<Keywords name="Folders in code1, close">}</Keywords>
22+
<Keywords name="Folders in code2, open"></Keywords>
23+
<Keywords name="Folders in code2, middle"></Keywords>
24+
<Keywords name="Folders in code2, close"></Keywords>
25+
<Keywords name="Folders in comment, open"></Keywords>
26+
<Keywords name="Folders in comment, middle"></Keywords>
27+
<Keywords name="Folders in comment, close"></Keywords>
28+
<<Keywords name="Keywords1">alias asm assert attrdef bitstruct break case catch const constdef continue default defer do else enum extern false fault faultdef tlocal for foreach foreach_r fn if inline import macro module nextcase null interface return static struct switch true try typedef union var while</Keywords>
29+
<Keywords name="Keywords2">void bool char double float float16 bfloat16 int128 ichar int iptr isz sz long short uint128 uint ulong uptr ushort usz float128 any typeid String ZString WString DString</Keywords>
30+
<Keywords name="Keywords3">$</Keywords>
31+
<Keywords name="Keywords4">@</Keywords>
32+
<Keywords name="Keywords5"></Keywords>
33+
<Keywords name="Keywords6"></Keywords>
34+
<Keywords name="Keywords7"></Keywords>
35+
<Keywords name="Keywords8"></Keywords>
36+
<Keywords name="Delimiters">00" 00' 00` 01 02" 02' 02` 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
2037
</KeywordLists>
2138
<Styles>
22-
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
23-
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
24-
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
25-
<WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" />
26-
<WordsStyle name="KEYWORD2" styleID="6" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="1" />
27-
<WordsStyle name="KEYWORD3" styleID="7" fgColor="8000FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
28-
<WordsStyle name="KEYWORD4" styleID="8" fgColor="FF0080" bgColor="FFFFFF" fontName="" fontStyle="0" />
29-
<WordsStyle name="COMMENT" styleID="1" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" />
30-
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" />
31-
<WordsStyle name="NUMBER" styleID="4" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0" />
32-
<WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="1" />
33-
<WordsStyle name="DELIMITER1" styleID="14" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="0" />
34-
<WordsStyle name="DELIMITER2" styleID="15" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="0" />
35-
<WordsStyle name="DELIMITER3" styleID="16" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="0" />
39+
<WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
40+
<WordsStyle name="COMMENTS" fgColor="008000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
41+
<WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
42+
<WordsStyle name="NUMBERS" fgColor="FF8000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
43+
<WordsStyle name="KEYWORDS1" fgColor="0000FF" bgColor="FFFFFF" fontStyle="1" nesting="0" />
44+
<WordsStyle name="KEYWORDS2" fgColor="0080FF" bgColor="FFFFFF" fontStyle="1" nesting="0" />
45+
<WordsStyle name="KEYWORDS3" fgColor="8000FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
46+
<WordsStyle name="KEYWORDS4" fgColor="FF0080" bgColor="FFFFFF" fontStyle="0" nesting="0" />
47+
<WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
48+
<WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
49+
<WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
50+
<WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
51+
<WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" fontStyle="1" nesting="0" />
52+
<WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
53+
<WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
54+
<WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
55+
<WordsStyle name="DELIMITERS1" fgColor="808080" bgColor="FFFFFF" fontStyle="0" nesting="0" />
56+
<WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
57+
<WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
58+
<WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
59+
<WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
60+
<WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
61+
<WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
62+
<WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
3663
</Styles>
3764
</UserLang>
38-
</NotepadPlus>
65+
</NotepadPlus>

notepad++/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## Usage
44

5-
- Copy the `c3_npp.xml` file to:
5+
- Copy the `C3.xml` file to:
66
- `%APPDATA%\Notepad++\userDefineLangs`
77

88
Alternatively, you can import it directly through the Notepad++ application:
99
1. Open Notepad++
1010
2. Go to **Language** > **User Defined Language** > **Define your language...**
11-
3. Click on **Import...** and select the `c3_npp.xml` file.
12-
4. Restart Notepad++ to apply the changes.
11+
3. Click on **Import...** and select the `C3.xml` file.
12+
4. Restart Notepad++ to apply the changes.

0 commit comments

Comments
 (0)