From e5108cc0ea7e85c7257e60e92e965215e0554ee9 Mon Sep 17 00:00:00 2001 From: Don HO Date: Sun, 27 Jan 2019 02:53:02 +0100 Subject: [PATCH] Add Markdown language. via User Defined Language. Markdown++: https://github.com/Edditoria/markdown-plus-plus Included only for Installer. --- ...serDefinedLang-markdown.default.modern.xml | 64 +++++++++++++++++++ .../nsisInclude/mainSectionFuncs.nsh | 5 ++ .../installer/nsisInclude/uninstall.nsh | 3 +- 3 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 PowerEditor/bin/userDefinedLang-markdown.default.modern.xml diff --git a/PowerEditor/bin/userDefinedLang-markdown.default.modern.xml b/PowerEditor/bin/userDefinedLang-markdown.default.modern.xml new file mode 100644 index 000000000..df995af46 --- /dev/null +++ b/PowerEditor/bin/userDefinedLang-markdown.default.modern.xml @@ -0,0 +1,64 @@ + + + + + + + + 00# 01 02((EOL)) 03<!-- 04--> + + + + + . + . + + @ < > \< \> \\ \` \* \_ \{ \} \[ \] \( \) \# \+ \- \. \! \~ :|: |: :| | \| + - + + + + + + + + + + + http:// (http:// https:// (https:// mailto: (mailto: ftp:// (ftp:// ftps:// (ftps:// (/ / + ==== ---- + *** ___ + ** __ + * _ + ** __ + * _ + + 00![ 00[ 01\ 02] 02] 03``` 03` 03~~~ 04\ 05``` 05((EOL `)) 05~~~ 06*** 07\ 08((EOL ***)) 09** 10\ 11((EOL **)) 12* 13\ 14((EOL *)) 15** 16\ 17((EOL **)) 18* 19\ 20((EOL *)) 21 22 23 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PowerEditor/installer/nsisInclude/mainSectionFuncs.nsh b/PowerEditor/installer/nsisInclude/mainSectionFuncs.nsh index e41b22773..91c2ff159 100644 --- a/PowerEditor/installer/nsisInclude/mainSectionFuncs.nsh +++ b/PowerEditor/installer/nsisInclude/mainSectionFuncs.nsh @@ -96,6 +96,7 @@ Function copyCommonFiles SetOverwrite off File "..\bin\shortcuts.xml" + ; Set Section Files and Shortcuts @@ -104,6 +105,10 @@ Function copyCommonFiles File "..\bin\change.log" File "..\bin\readme.txt" + IfFileExists "$UPDATE_PATH\userDefineLang.xml" 0 +2 + File "..\bin\userDefinedLang-markdown.default.modern.xml" + File /oname=$INSTDIR\userDefineLang.xml "..\bin\userDefinedLang-markdown.default.modern.xml" + !ifdef ARCH64 File "..\bin64\SciLexer.dll" File "..\bin64\notepad++.exe" diff --git a/PowerEditor/installer/nsisInclude/uninstall.nsh b/PowerEditor/installer/nsisInclude/uninstall.nsh index a2b90f7dd..3ac42767f 100644 --- a/PowerEditor/installer/nsisInclude/uninstall.nsh +++ b/PowerEditor/installer/nsisInclude/uninstall.nsh @@ -176,9 +176,7 @@ FunctionEnd Delete "$SMPROGRAMS\Notepad++\Notepad++.lnk" Delete "$SMPROGRAMS\Notepad++\readme.lnk" - RMDir /r "${dir2remove}" - !macroend @@ -246,6 +244,7 @@ Section Uninstall Delete "$INSTDIR\SourceCodePro-It.ttf" Delete "$INSTDIR\SourceCodePro-BoldIt.ttf" Delete "$INSTDIR\NppHelp.chm" + Delete "$INSTDIR\userDefinedLang-markdown.default.modern.xml" Delete "$INSTDIR\doLocalConf.xml" Delete "$INSTDIR\uninstall.ini"