From a48cf0bb2480a5ad7a34b6598456feb971c7696e Mon Sep 17 00:00:00 2001 From: meisl Date: Fri, 7 May 2021 15:03:15 +0200 Subject: [PATCH] + #23 Notepad++ syntax-file: add notes re update / alt installation --- syntax-files/NotepadPlusPlus/README.md | 4 ++++ syntax-files/NotepadPlusPlus/syntax-test.p8 | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/syntax-files/NotepadPlusPlus/README.md b/syntax-files/NotepadPlusPlus/README.md index 1e8cc0faa..7de8d568b 100644 --- a/syntax-files/NotepadPlusPlus/README.md +++ b/syntax-files/NotepadPlusPlus/README.md @@ -8,3 +8,7 @@ To install: * Open Notepad++ * Menu `Language` | `User Defined Language` | `Define your language...` * Click `Import...`, then choose the xml file `Prog8.xml` + +Notes: +* After an update of Notepad++ you will have to import the xml file again. +* Alternatively, you can select `Language` | `User Defined Language` | `Open User Defined Language folder...` and put the xml file there. diff --git a/syntax-files/NotepadPlusPlus/syntax-test.p8 b/syntax-files/NotepadPlusPlus/syntax-test.p8 index b9d6b3f3e..9435d9f53 100644 --- a/syntax-files/NotepadPlusPlus/syntax-test.p8 +++ b/syntax-files/NotepadPlusPlus/syntax-test.p8 @@ -6,7 +6,7 @@ ; TODO: something ; FIXME #31 main { - str input = "string literal" + str input = "string literal\r\n\"\\" ubyte c = 'x' ; character literal in bold ubyte decimal = 0 + 1 - 2 * 3 float pi = 3.1415 @@ -16,7 +16,7 @@ main { inline asmsub foo(ubyte char @A) clobbers(Y) { asm {{ a_label: - nop + nop ; comment inside asm bcc _done sec _done: rts