-
-
Save Sagleft/9fcd28489a33fe51117f0c107697c13f to your computer and use it in GitHub Desktop.
Notepad++ Syntax Highlight for Go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<NotepadPlus> | |
<!-- | |
NPP Syntax Highlight for Go | |
using most used color in NPP for Golang. | |
Author: blinksmith, sagleft Version: 0.1.4 | |
Last tested in Notepad++ v7.5.4 | |
Quick start : | |
Method 1 | |
- Download golang.udl.xml and then open notepad++ | |
- Go to Toolbar Menu -> Language -> "Define your language..." -> Import. | |
- Import golang.udl.xml and restart NPP. | |
Method 2 (Recommended Version) | |
- Go to https://stackoverflow.com/a/36329825/5882350 I will try to explain it in there. | |
--> | |
<UserLang name="Golang" ext="go" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="2" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00// 01 02 03/* 04*/</Keywords> | |
<Keywords name="Numbers, prefix1">A B C D E F a b c d e f X x O o</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">A B C D E F a b c d e f X x O o</Keywords> | |
<Keywords name="Operators1">&^= := >>= <<= >= <= <- -> << >> ... %= &= += && == != -= -= |= ++ || *= ^= /= %v %k %s %t | ! . -</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">package import type func var const</Keywords> | |
<Keywords name="Keywords2">break case chan continue default defer else func() fallthrough for go goto if interface map range return select switch true false</Keywords> | |
<Keywords name="Keywords3">struct append bool byte cap close closed copy imag len make new panic print println range real recover select string utf8 nil</Keywords> | |
<Keywords name="Keywords4">int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 uintptr float32 float64 complex complex128 complex64 iota</Keywords> | |
<Keywords name="Keywords5"></Keywords> | |
<Keywords name="Keywords6"></Keywords> | |
<Keywords name="Keywords7"></Keywords> | |
<Keywords name="Keywords8"></Keywords> | |
<Keywords name="Delimiters">00[ 01 02] 03" 04 05" 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="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="LINE COMMENTS" fgColor="00B55A" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="NUMBERS" fgColor="FFD7AE" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS1" fgColor="FFDBDB" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="KEYWORDS2" fgColor="9D9DFF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="KEYWORDS3" fgColor="FF9999" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS4" fgColor="FFA74F" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="OPERATORS" fgColor="C1C1FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="FOLDER IN CODE1" fgColor="DBDBFF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="FOLDER IN CODE2" fgColor="FFFFFF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="FOLDER IN COMMENT" fgColor="FFFFFF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS1" fgColor="C8C8FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS2" fgColor="C68CFF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS3" fgColor="FFBBBB" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
</Styles> | |
</UserLang> | |
</NotepadPlus> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment