Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

NPP MIPS Highlighting

Nathan edited this page Mar 7, 2023 · 5 revisions

NPP MIPS Highlighting

See code block for XML to import to Notepad++. To use, just import in the User-Defined languages dialog box--will associate .s files with it automatically.

Light Mode XML (Click to drop down!)
<NotepadPlus>
    <UserLang name="MIPS R4300i" ext="s" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="yes" forcePureLC="0" decimalSeparator="0" />
            <Prefix Keywords1="no" Keywords2="yes" Keywords3="no" Keywords4="no" Keywords5="yes" Keywords6="yes" Keywords7="yes" Keywords8="yes" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments">00; 00// 01 02 03/* 04*/</Keywords>
            <Keywords name="Numbers, prefix1"></Keywords>
            <Keywords name="Numbers, prefix2"></Keywords>
            <Keywords name="Numbers, extras1"></Keywords>
            <Keywords name="Numbers, extras2"></Keywords>
            <Keywords name="Numbers, suffix1"></Keywords>
            <Keywords name="Numbers, suffix2"></Keywords>
            <Keywords name="Numbers, range"></Keywords>
            <Keywords name="Operators1">,</Keywords>
            <Keywords name="Operators2"></Keywords>
            <Keywords name="Folders in code1, open"></Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close"></Keywords>
            <Keywords name="Folders in code2, open"></Keywords>
            <Keywords name="Folders in code2, middle"></Keywords>
            <Keywords name="Folders in code2, close"></Keywords>
            <Keywords name="Folders in comment, open"></Keywords>
            <Keywords name="Folders in comment, middle"></Keywords>
            <Keywords name="Folders in comment, close"></Keywords>
            <Keywords name="Keywords1">LB LBU SB LH LHU SH LW LWU SW LD SD LWL LWR SWL SWR LDL LDR SDL SDR LL SC LLD SCD LWC1 SWC1 LDC1 SDC1 LWXC1 SWXC1 LDXC1 SDXC1 ADDI ADDIU SLTI SLTIU ANDI ORI XORI LUI DADDI DADDIU ADD ADDU SUB SUBU DADD DADDU DSUB DSUBU SLT SLTU AND OR XOR NOR SLL SRL SRA SLLV SRLV SRAV DSLL DSRL DSRA DSLL32 DSRL32 DSRA32 DSLLV DSRLV DSRAV MULT MULTU DIV DIVU DMULT DMULTU DDIV DDIVU MFHI MTHI MFLO MTLO J JAL JR JALR BEQ BNE BLEZ BGTZ BNEL BLEZL BGTZL BLTZ BGEZ BLTZAL BGEZAL BLTZL BGEZL BLTZALL BGEZALL SYSCALL BREAK TGE TGEU TLT TLTU TEQ TNE TGEI TGEIU TLTI TLTIU TEQI TNEI SYNC MOVN MOVZ PREF PREFX LWC2 SWC2 LDC2 SDC2 LWC3 SWC3 LDC3 SDC3 COP0 COP1 COP2 COP3 NOP DB DW DH writehex LI BEQL MOV DIV.D MOV.D C.LE.D BC1F C.LT.D MTC1 CVT.D.W CACHE SUB.D ADD.D MUL.D C.EQ.D MFC0 ABS.S ABS.D ADD.S ADD.D BC1T BC1FL BC1TL C.F.S C.UN.S C.EQ.S C.UEQ.S C.OLT.S C.ULT.S C.OLE.S C.ULE.S C.SF.S C.NGLE.S C.SEQ.S C.NGL.S C.LT.S C.NGE.S C.LE.S C.NGT.S C.F.D C.UN.D C.EQ.D C.UEQ.D C.OLT.D C.ULT.D C.OLE.D C.ULE.D C.SF.D C.NGLE.D C.SEQ.D C.NGL.D C.LT.D C.NGE.D C.LE.D C.NGT.D CEIL.W.S CEIL.W.D CEIL.L.S CEIL.L.D CVT.S.W CVT.S.L CVT.S.D CVT.W.S CVT.W.D CVT.D.S CVT.D.L CVT.L.S CVT.L.D DIV.S MOV.S FLOOR.L.S FLOOR.L.D FLOOR.W.S FLOOR.W.D MTC0 MTC1 DMTC1 MFC1 DMFC1 MUL.S NEG.S NEG.D ROUND.L.S ROUND.L.D SUB.S SQRT.S SQRT.D ROUND.W.S ROUND.W.D TRUNC.L.S TRUNC.L.D TRUNC.W.S TRUNC.W.D BGE BLT BLE BGT B BAL CL BEQZ BNEZ SUBI SUBIU BEQI BNEI BGTI BLTI BGEI BLEI VMULF VMULU VRNDP VMULQ VMUDL VMUDM VMUDN VMUDH VMACF VMACU VRNDN VMACQ VMADL VMADN VMADM VMADH VADD VSUB VSUT VABS VADDC VSUBC VADDB VSUBB VACCB VSUCB VSAD VSAC VSUM VSAW VLT VEQ VNE VGE VCL VCH VCR VMRG VAND VNAND VOR VNOR VXOR VNXOR VRCP VRCPL VRCPH VMOV VRSQ VRSQL VRSQH MFC2 MTC2 LBV LSV LLV LDV LQV LRV LPV LUV LHV LFV LWV LTV SBV SSV SLV SDV SQV SRV SPV SUV SHV SFV SWV STV</Keywords>
            <Keywords name="Keywords2">-0x 0x # %</Keywords>
            <Keywords name="Keywords3">R0 AT V0 V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 V17 V18 V19 V20 V21 V22 V23 V24 V25 V26 V27 V28 V29 V30 V31 A0 A1 A2 A3 T0 T1 T2 T3 T4 T5 T6 T7 S0 S1 S2 S3 S4 S5 S6 S7 S8 T8 T9 K0 K1 GP SP FP RA LO HI F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 F17 F18 F19 F20 F21 F22 F23 F24 F25 F26 F27 F28 F29 F30 F31 $zero $R0 $AT $V0 $V1 $V2 $V3 $V4 $V5 $V6 $V7 $V8 $V9 $V10 $V11 $V12 $V13 $V14 $V15 $V16 $V17 $V18 $V19 $V20 $V21 $V22 $V23 $V24 $V25 $V26 $V27 $V28 $V29 $V30 $V31 $A0 $A1 $A2 $A3 $T0 $T1 $T2 $T3 $T4 $T5 $T6 $T7 $S0 $S1 $S2 $S3 $S4 $S5 $S6 $S7 $S8 $T8 $T9 $K0 $K1 $GP $SP $FP $RA $LO $HI $F0 $F1 $F2 $F3 $F4 $F5 $F6 $F7 $F8 $F9 $F10 $F11 $F12 $F13 $F14 $F15 $F16 $F17 $F18 $F19 $F20 $F21 $F22 $F23 $F24 $F25 $F26 $F27 $F28 $F29 $F30 $F31</Keywords>
            <Keywords name="Keywords4">.ORG .TITLE .DESCRIPTION .BASE CONTEXT .macro .m .endmacro .endm .rept .endr .ascii .asciiz .include .incl .inc hex .float .byte .word .halfword .incasm .incbin .align .skip</Keywords>
            <Keywords name="Keywords5">&amp; endmacro</Keywords>
            <Keywords name="Keywords6"></Keywords>
            <Keywords name="Keywords7">A C B D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9</Keywords>
            <Keywords name="Keywords8"></Keywords>
            <Keywords name="Delimiters">00( 01 02) 03&quot; 04 05&quot; 06{ 07 08} 09 10 11: 12[ 13 14] 15 16 17 18 19 20 21 22 23</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="122513" fontStyle="0" nesting="0" />
            <WordsStyle name="NUMBERS" fgColor="FF0000" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" fgColor="0000FF" bgColor="FFFFFF" fontName="no" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS2" fgColor="FF0000" bgColor="FFFFFF" fontName="0" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS3" fgColor="000000" bgColor="FFFFFF" fontName="9040" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS4" fgColor="0000FF" bgColor="FFFFFF" fontName="no" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS5" fgColor="8080FF" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS6" fgColor="00FF00" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontName="no" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" fgColor="FFFFFF" bgColor="000000" fontName="0" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" fontStyle="1" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" fgColor="800080" bgColor="000000" fontName="0" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" fgColor="FFFFFF" bgColor="000000" fontName="utoCompletion\c.xml" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" fgColor="0080C0" bgColor="000000" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" fgColor="ACACAC" bgColor="FFFFFF" fontName="-1" fontStyle="1" nesting="0" />
            <WordsStyle name="DELIMITERS2" fgColor="999999" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" fgColor="1C1CFF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" fgColor="FFFFFF" bgColor="000000" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" fgColor="0000FF" bgColor="FFFFFF" fontName="-1" fontStyle="1" nesting="0" />
            <WordsStyle name="DELIMITERS6" fgColor="0080C0" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="C++" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>
Dark Mode XML (Click to drop down!)
<NotepadPlus>
    <UserLang name="MIPS R4300i" ext="s" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="yes" forcePureLC="0" decimalSeparator="0" />
            <Prefix Keywords1="no" Keywords2="yes" Keywords3="no" Keywords4="no" Keywords5="yes" Keywords6="yes" Keywords7="yes" Keywords8="yes" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments">00; 00// 01 02 03/* 04*/</Keywords>
            <Keywords name="Numbers, prefix1"></Keywords>
            <Keywords name="Numbers, prefix2"></Keywords>
            <Keywords name="Numbers, extras1"></Keywords>
            <Keywords name="Numbers, extras2"></Keywords>
            <Keywords name="Numbers, suffix1"></Keywords>
            <Keywords name="Numbers, suffix2"></Keywords>
            <Keywords name="Numbers, range"></Keywords>
            <Keywords name="Operators1">,</Keywords>
            <Keywords name="Operators2"></Keywords>
            <Keywords name="Folders in code1, open"></Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close"></Keywords>
            <Keywords name="Folders in code2, open"></Keywords>
            <Keywords name="Folders in code2, middle"></Keywords>
            <Keywords name="Folders in code2, close"></Keywords>
            <Keywords name="Folders in comment, open"></Keywords>
            <Keywords name="Folders in comment, middle"></Keywords>
            <Keywords name="Folders in comment, close"></Keywords>
            <Keywords name="Keywords1">LB LBU SB LH LHU SH LW LWU SW LD SD LWL LWR SWL SWR LDL LDR SDL SDR LL SC LLD SCD LWC1 SWC1 LDC1 SDC1 LWXC1 SWXC1 LDXC1 SDXC1 ADDI ADDIU SLTI SLTIU ANDI ORI XORI LUI DADDI DADDIU ADD ADDU SUB SUBU DADD DADDU DSUB DSUBU SLT SLTU AND OR XOR NOR SLL SRL SRA SLLV SRLV SRAV DSLL DSRL DSRA DSLL32 DSRL32 DSRA32 DSLLV DSRLV DSRAV MULT MULTU DIV DIVU DMULT DMULTU DDIV DDIVU MFHI MTHI MFLO MTLO J JAL JR JALR BEQ BNE BLEZ BGTZ BNEL BLEZL BGTZL BLTZ BGEZ BLTZAL BGEZAL BLTZL BGEZL BLTZALL BGEZALL SYSCALL BREAK TGE TGEU TLT TLTU TEQ TNE TGEI TGEIU TLTI TLTIU TEQI TNEI SYNC MOVN MOVZ PREF PREFX LWC2 SWC2 LDC2 SDC2 LWC3 SWC3 LDC3 SDC3 COP0 COP1 COP2 COP3 NOP DB DW DH writehex LI BEQL MOV DIV.D MOV.D C.LE.D BC1F C.LT.D MTC1 CVT.D.W CACHE SUB.D ADD.D MUL.D C.EQ.D MFC0 ABS.S ABS.D ADD.S ADD.D BC1T BC1FL BC1TL C.F.S C.UN.S C.EQ.S C.UEQ.S C.OLT.S C.ULT.S C.OLE.S C.ULE.S C.SF.S C.NGLE.S C.SEQ.S C.NGL.S C.LT.S C.NGE.S C.LE.S C.NGT.S C.F.D C.UN.D C.EQ.D C.UEQ.D C.OLT.D C.ULT.D C.OLE.D C.ULE.D C.SF.D C.NGLE.D C.SEQ.D C.NGL.D C.LT.D C.NGE.D C.LE.D C.NGT.D CEIL.W.S CEIL.W.D CEIL.L.S CEIL.L.D CVT.S.W CVT.S.L CVT.S.D CVT.W.S CVT.W.D CVT.D.S CVT.D.L CVT.L.S CVT.L.D DIV.S MOV.S FLOOR.L.S FLOOR.L.D FLOOR.W.S FLOOR.W.D MTC0 MTC1 DMTC1 MFC1 DMFC1 MUL.S NEG.S NEG.D ROUND.L.S ROUND.L.D SUB.S SQRT.S SQRT.D ROUND.W.S ROUND.W.D TRUNC.L.S TRUNC.L.D TRUNC.W.S TRUNC.W.D BGE BLT BLE BGT B BAL CL BEQZ BNEZ SUBI SUBIU BEQI BNEI BGTI BLTI BGEI BLEI VMULF VMULU VRNDP VMULQ VMUDL VMUDM VMUDN VMUDH VMACF VMACU VRNDN VMACQ VMADL VMADN VMADM VMADH VADD VSUB VSUT VABS VADDC VSUBC VADDB VSUBB VACCB VSUCB VSAD VSAC VSUM VSAW VLT VEQ VNE VGE VCL VCH VCR VMRG VAND VNAND VOR VNOR VXOR VNXOR VRCP VRCPL VRCPH VMOV VRSQ VRSQL VRSQH MFC2 MTC2 LBV LSV LLV LDV LQV LRV LPV LUV LHV LFV LWV LTV SBV SSV SLV SDV SQV SRV SPV SUV SHV SFV SWV STV</Keywords>
            <Keywords name="Keywords2">-0x 0x # %</Keywords>
            <Keywords name="Keywords3">R0 AT V0 V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 V17 V18 V19 V20 V21 V22 V23 V24 V25 V26 V27 V28 V29 V30 V31 A0 A1 A2 A3 T0 T1 T2 T3 T4 T5 T6 T7 S0 S1 S2 S3 S4 S5 S6 S7 S8 T8 T9 K0 K1 GP SP FP RA LO HI F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 F17 F18 F19 F20 F21 F22 F23 F24 F25 F26 F27 F28 F29 F30 F31 $zero $R0 $AT $V0 $V1 $V2 $V3 $V4 $V5 $V6 $V7 $V8 $V9 $V10 $V11 $V12 $V13 $V14 $V15 $V16 $V17 $V18 $V19 $V20 $V21 $V22 $V23 $V24 $V25 $V26 $V27 $V28 $V29 $V30 $V31 $A0 $A1 $A2 $A3 $T0 $T1 $T2 $T3 $T4 $T5 $T6 $T7 $S0 $S1 $S2 $S3 $S4 $S5 $S6 $S7 $S8 $T8 $T9 $K0 $K1 $GP $SP $FP $RA $LO $HI $F0 $F1 $F2 $F3 $F4 $F5 $F6 $F7 $F8 $F9 $F10 $F11 $F12 $F13 $F14 $F15 $F16 $F17 $F18 $F19 $F20 $F21 $F22 $F23 $F24 $F25 $F26 $F27 $F28 $F29 $F30 $F31</Keywords>
            <Keywords name="Keywords4">.ORG .TITLE .DESCRIPTION .BASE CONTEXT .macro .m .endmacro .endm .rept .endr .ascii .asciiz .include .incl .inc hex .float .byte .word .halfword .incasm .incbin .align .skip</Keywords>
            <Keywords name="Keywords5">&amp; endmacro</Keywords>
            <Keywords name="Keywords6"></Keywords>
            <Keywords name="Keywords7">A C B D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9</Keywords>
            <Keywords name="Keywords8"></Keywords>
            <Keywords name="Delimiters">00( 01 02) 03&quot; 04 05&quot; 06{ 07 08} 09 10 11: 12[ 13 14] 15 16 17 18 19 20 21 22 23</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" fgColor="FFFFFF" bgColor="000000" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" fgColor="008000" bgColor="000000" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="000000" fontName="122513" fontStyle="0" nesting="0" />
            <WordsStyle name="NUMBERS" fgColor="FF0000" bgColor="000000" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" fgColor="0000FF" bgColor="000000" fontName="no" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS2" fgColor="FF0000" bgColor="000000" fontName="0" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS3" fgColor="FFFFFF" bgColor="000000" fontName="9040" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS4" fgColor="0000FF" bgColor="000000" fontName="no" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS5" fgColor="8080FF" bgColor="000000" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS6" fgColor="00FF00" bgColor="000000" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS7" fgColor="FFFFFF" bgColor="000000" fontName="no" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" fgColor="FFFFFF" bgColor="000000" fontName="0" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" fgColor="FFFFFF" bgColor="000000" fontStyle="1" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" fgColor="800080" bgColor="000000" fontName="0" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" fgColor="FFFFFF" bgColor="000000" fontName="utoCompletion\c.xml" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" fgColor="0080C0" bgColor="000000" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" fgColor="ACACAC" bgColor="000000" fontName="-1" fontStyle="1" nesting="0" />
            <WordsStyle name="DELIMITERS2" fgColor="999999" bgColor="000000" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" fgColor="1C1CFF" bgColor="000000" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" fgColor="0000FF" bgColor="000000" fontName="-1" fontStyle="1" nesting="0" />
            <WordsStyle name="DELIMITERS6" fgColor="0080C0" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="C++" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>
Clone this wiki locally