Patch #898 2006-03-06 01:23

sethjackson

NSIS lexer
Download
898-NSIS_lexer.patch (11.8 KB)
Category
Lexer
Status
Accepted
Close date
2006-03-06 17:24
Assigned to
 
Index: src/sdk/resources/lexers/lexer_nsis.sample
===================================================================
--- src/sdk/resources/lexers/lexer_nsis.sample    (revision 0)
+++ src/sdk/resources/lexers/lexer_nsis.sample    (revision 0)
@@ -0,0 +1,71 @@
+/*
+ * This is a sample comment box
+ */
+
+;-----------------------------------------
+;Sets Default Compression to lzma
+
+    SetCompressor lzma
+
+;-----------------------------------------
+;Use Modern UI
+
+    !include "MUI.nsh"
+
+;-----------------------------------------
+;General
+
+    XPStyle on
+    Name "Example"
+    OutFile "setup.exe"
+    InstallDir $PROGRAMFILES\Example
+
+;-----------------------------------------
+;Interface Settings
+
+    !define MUI_ABORTWARNING
+    !define MUI_UNABORTWARNING
+
+;-----------------------------------------
+;Pages
+
+    !insertmacro MUI_PAGE_WELCOME
+    !insertmacro MUI_PAGE_DIRECTORY
+    !insertmacro MUI_PAGE_INSTFILES
+    !define MUI_FINISHPAGE_NOREBOOTSUPPORT
+    !insertmacro MUI_PAGE_FINISH
+
+    !insertmacro MUI_UNPAGE_WELCOME
+    !insertmacro MUI_UNPAGE_CONFIRM
+    !insertmacro MUI_UNPAGE_DIRECTORY
+    !insertmacro MUI_UNPAGE_INSTFILES
+    !insertmacro MUI_UNPAGE_FINISH
+
+;-----------------------------------------
+;Languages
+
+    !insertmacro MUI_LANGUAGE "English"
+
+;-----------------------------------------
+;Installer Section
+
+    Section "Install"
+
+        !insertmacro MUI_STARTMENU_WRITE_END
+
+        SetOutPath "$INSTDIR"
+
+        WriteUninstaller "uninstall.exe"
+
+    SectionEnd
+
+;-----------------------------------------
+;Uninstaller Section
+
+    Section "Uninstall"
+
+        Delete "$INSTDIR\uninstall.exe"
+
+        RMDir "$INSTDIR"
+
+    SectionEnd
Index: src/sdk/resources/lexers/lexer_nsis.xml
===================================================================
--- src/sdk/resources/lexers/lexer_nsis.xml    (revision 0)
+++ src/sdk/resources/lexers/lexer_nsis.xml    (revision 0)
@@ -0,0 +1,160 @@
+<?xml version="1.0"?>
+<!DOCTYPE CodeBlocks_lexer_properties>
+<CodeBlocks_lexer_properties>
+        <Lexer name="NSIS"
+                index="43"
+                filemasks="*.nsi,*.nsh">
+                <Style name="Default"
+                        index="0"
+                        fg="0,0,0"
+                        bg="255,255,255"
+                        bold="0"
+                        italics="0"
+                        underlined="0"/>
+                <Style name="Comment"
+                        index="1"
+                        fg="160,160,160"/>
+                <Style name="Double quote string"
+                        index="2"
+                        fg="0,0,255"/>
+                <Style name="Left quote string"
+                        index="3"
+                        fg="128,0,0"/>
+                <Style name="Right quote string"
+                        index="4"
+                        fg="128,0,128"/>
+                <Style name="Function"
+                        index="5"
+                        fg="0,0,160"
+                        bold="1"/>
+                <Style name="Variable"
+                        index="6"
+                        fg="158,0,0"/>
+                <Style name="Label"
+                        index="7"
+                        fg="224,160,0"/>
+                <Style name="User defined"
+                        index="8"
+                        fg="0,0,0"/>
+                <Style name="Section"
+                        index="9"
+                        fg="0,0,160"
+                        bold="1"/>
+                <Style name="Sub section"
+                        index="10"
+                        fg="0,0,160"
+                        bold="1"/>
+                <Style name="If def"
+                        index="11"
+                        fg="0,0,160"
+                        bold="1"/>
+                <Style name="Macro definition"
+                        index="12"
+                        fg="0,0,160"
+                        bold="1"/>
+                <Style name="Variable within a string"
+                        index="13"
+                        fg="255,0,0"/>
+                <Style name="Number"
+                        index="14"
+                        fg="240,0,240"/>
+                <Style name="Section group"
+                        index="15"
+                        fg="0,0,160"
+                        bold="1"/>
+                <Style name="Page Ex"
+                        index="16"
+                        fg="0,0,160"
+                        bold="1"/>
+                <Style name="Function definition"
+                        index="17"
+                        fg="0,0,160"
+                        bold="1"/>
+                <Style name="Comment box"
+                        index="18"
+                        fg="128,128,255"
+                        bold="1"/>
+                <Keywords>
+                        <!-- Functions -->
+
download for full patch...