XhmikosR / notepad2-mod

LOOKING FOR DEVELOPERS - Notepad2-mod, a Notepad2 fork, a fast and light-weight Notepad-like text editor with syntax highlighting
https://xhmikosr.github.io/notepad2-mod/
Other
1.45k stars 270 forks source link

NSIS syntax needs update #165

Closed KohChia closed 8 years ago

KohChia commented 8 years ago

NSIS 3.0 has been released recently, some new command added:

Pre-processor commands:

Some new commands and options:

I only found these, maybe more.

XhmikosR commented 8 years ago

If you go through all of them and list them I could add them. Alternatively, you could make a PR.

KohChia commented 8 years ago

I found almost all the them through changelog, NSIS manual & source code.

All instructions & switches are case insensitive in NSIS script all along.

XhmikosR commented 8 years ago

Try this build.

For ${U+1}...${U+10FFFF} check if Scite works; if not report the issue to Scintilla.

Notepad2-mod.zip

KohChia commented 8 years ago
XhmikosR commented 8 years ago

Please paste a test script I can use for testing.

On Sep 7, 2016 12:46, "550771955" notifications@github.com wrote:

-

!addplugindir [/x86-ansi | /x86-unicode] "x86-ansi" & "x86-unicode" are not highlighted.

!if [!] /FileExists "X:\path\file.ext" "fileexists" is not highlighted.

!appendfile [/CHARSET=ACP|OEM|CP#|UTF8[SIG]|UTF16[BOM]] [/RawNL] file text "RawNL" is not highlighted.

Unicode true|false "Unicode" is not highlighted.

CreateShortcut [/NoWorkingDir] link.lnk target.ext [args [icon [index [show [hotkey [desc]]]]]] "NoWorkingDir" is not highlighted.

${U+1} ... ${U+10FFFF} Highlighted in quotations marks, for example: '${U+1}', '${U+10FF}', "${U+10FFFF}". Not highlighted without any quotations marks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/XhmikosR/notepad2-mod/issues/165#issuecomment-245230350, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVVtczxQY1mzQIGwtuf9zJX5kHprD5_ks5qnogDgaJpZM4Jiuz9 .

KohChia commented 8 years ago
!addplugindir /x86-ansi ".\plugin_x86"
!addplugindir /x86-unicode ".\plugin_x64"
!include /NONFATAL /CHARSET=OEM ".\example.nsh"
!if /fileexists ".\dummy.txt"
!echo "dummy.txt exists!"
!endif
!appendfile /RawNL /CHARSET=ACP "${__FILE__}" "XPStyle on$\n"
!finalize "echo done!"
!getdllversion "$%windir%\notepad.exe" VERSION
!makensis "/DMACRO=1 ${__FILE__}"
!macroundef SampleMacroName

Unicode true|false

VIFileVersion 1.0.0.0
ManifestSupportedOS none|all|WinVista|Win7|Win8|Win8.1|Win10
ReserveFile /plugin "System.dll"

Section "-Install"
    DetailPrint `${NSIS_VERSION}`
    DetailPrint '${NSIS_PTR_SIZE}'
    DetailPrint "${NSIS_CHAR_SIZE}"
    DetailPrint `${U+1}`
    DetailPrint '${U+10FF}'
    DetailPrint "${U+10FFFF}"
    DetailPrint ${NSIS_VERSION}
    DetailPrint ${NSIS_PTR_SIZE}
    DetailPrint ${NSIS_CHAR_SIZE}
    DetailPrint ${U+1}
    DetailPrint ${U+10FF}
    DetailPrint ${U+10FFFF}
    CreateShortcut /NoWorkingDir "$DESKTOP\Notepad.lnk" "$WINDIR\notepad.exe"
SectionEnd

The script is just for testing, it may not be compiled successfully.

XhmikosR commented 8 years ago

For the remaining issues, report them to Scintilla with samples.