mirror of
https://github.com/golang/go
synced 2024-11-21 20:44:39 -07:00
misc/notepadplus: add syntax and completion support for notepad++
R=golang-dev, adg, peterGo CC=golang-dev https://golang.org/cl/4274072
This commit is contained in:
parent
799be52b35
commit
731786439c
8
misc/notepadplus/README
Executable file
8
misc/notepadplus/README
Executable file
@ -0,0 +1,8 @@
|
||||
Given a Notepad++ installation at <DIR>:
|
||||
|
||||
1. Add the contents of userDefineLang.xml at <DIR>\userDefineLang.xml
|
||||
between <NotepadPlus> ... </NotepadPlus>
|
||||
|
||||
2. Copy go.xml to <DIR>\plugins\APIs
|
||||
|
||||
3. Restart Notepad++
|
66
misc/notepadplus/go.xml
Executable file
66
misc/notepadplus/go.xml
Executable file
@ -0,0 +1,66 @@
|
||||
<NotepadPlus>
|
||||
<!-- Go Programming Language builtins and keywords -->
|
||||
<AutoComplete>
|
||||
<KeyWord name="append"/>
|
||||
<KeyWord name="bool" />
|
||||
<KeyWord name="break" />
|
||||
<KeyWord name="byte" />
|
||||
<KeyWord name="cap" />
|
||||
<KeyWord name="case" />
|
||||
<KeyWord name="chan" />
|
||||
<KeyWord name="close" />
|
||||
<KeyWord name="complex" />
|
||||
<KeyWord name="complex128" />
|
||||
<KeyWord name="complex64" />
|
||||
<KeyWord name="const" />
|
||||
<KeyWord name="continue" />
|
||||
<KeyWord name="copy" />
|
||||
<KeyWord name="default" />
|
||||
<KeyWord name="defer" />
|
||||
<KeyWord name="else" />
|
||||
<KeyWord name="fallthrough" />
|
||||
<KeyWord name="false" />
|
||||
<KeyWord name="float32" />
|
||||
<KeyWord name="float64" />
|
||||
<KeyWord name="for" />
|
||||
<KeyWord name="func" />
|
||||
<KeyWord name="go" />
|
||||
<KeyWord name="goto" />
|
||||
<KeyWord name="if" />
|
||||
<KeyWord name="iota" />
|
||||
<KeyWord name="imag" />
|
||||
<KeyWord name="import" />
|
||||
<KeyWord name="int" />
|
||||
<KeyWord name="int16" />
|
||||
<KeyWord name="int32" />
|
||||
<KeyWord name="int64" />
|
||||
<KeyWord name="int8" />
|
||||
<KeyWord name="interface" />
|
||||
<KeyWord name="len" />
|
||||
<KeyWord name="make" />
|
||||
<KeyWord name="map" />
|
||||
<KeyWord name="new" />
|
||||
<KeyWord name="nil" />
|
||||
<KeyWord name="package" />
|
||||
<KeyWord name="panic" />
|
||||
<KeyWord name="print" />
|
||||
<KeyWord name="println" />
|
||||
<KeyWord name="range" />
|
||||
<KeyWord name="real" />
|
||||
<KeyWord name="recover" />
|
||||
<KeyWord name="return" />
|
||||
<KeyWord name="select" />
|
||||
<KeyWord name="string" />
|
||||
<KeyWord name="struct" />
|
||||
<KeyWord name="switch" />
|
||||
<KeyWord name="true" />
|
||||
<KeyWord name="type" />
|
||||
<KeyWord name="uint" />
|
||||
<KeyWord name="uint16" />
|
||||
<KeyWord name="uint32" />
|
||||
<KeyWord name="uint64" />
|
||||
<KeyWord name="uint8" />
|
||||
<KeyWord name="uintptr" />
|
||||
<KeyWord name="var" />
|
||||
</AutoComplete>
|
||||
</NotepadPlus>
|
36
misc/notepadplus/userDefineLang.xml
Executable file
36
misc/notepadplus/userDefineLang.xml
Executable file
@ -0,0 +1,36 @@
|
||||
<!-- <NotepadPlus> -->
|
||||
<UserLang name="go" ext="go">
|
||||
<Settings>
|
||||
<Global caseIgnored="no" />
|
||||
<TreatAsSymbol comment="no" commentLine="no" />
|
||||
<Prefix words1="no" words2="no" words3="no" words4="no" />
|
||||
</Settings>
|
||||
<KeywordLists>
|
||||
<Keywords name="Delimiters">"`0"`</Keywords>
|
||||
<Keywords name="Folder+"></Keywords>
|
||||
<Keywords name="Folder-"></Keywords>
|
||||
<Keywords name="Operators">( ) [ ] { } ... . , _ & ^ % > < ! = + - * | :</Keywords>
|
||||
<Keywords name="Comment"> 1/* 2*/ 0//</Keywords>
|
||||
<Keywords name="Words1">append bool break byte cap case chan close complex complex128 complex64 const continue copy default defer else fallthrough false float32 float64 for func go goto if iota imag import int int16 int32 int64 int8 interface len make map new nil package panic print println range real recover return select string struct switch true type uint uint16 uint32 uint64 uint8 uintptr var</Keywords>
|
||||
<Keywords name="Words2"></Keywords>
|
||||
<Keywords name="Words3"></Keywords>
|
||||
<Keywords name="Words4"></Keywords>
|
||||
</KeywordLists>
|
||||
<Styles>
|
||||
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
|
||||
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FFFF00" bgColor="FFFFFF" fontName="" fontStyle="0" />
|
||||
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="0B243B" bgColor="FFFFFF" fontName="" fontStyle="0" />
|
||||
<WordsStyle name="KEYWORD1" styleID="5" fgColor="AA0000" bgColor="FFFFFF" fontName="" fontStyle="1" />
|
||||
<WordsStyle name="KEYWORD2" styleID="6" fgColor="AA0000" bgColor="FFFFFF" fontName="" fontStyle="1" />
|
||||
<WordsStyle name="KEYWORD3" styleID="7" fgColor="AA0000" bgColor="FFFFFF" fontName="" fontStyle="0" />
|
||||
<WordsStyle name="KEYWORD4" styleID="8" fgColor="A00000" bgColor="FFFFFF" fontName="" fontStyle="0" />
|
||||
<WordsStyle name="COMMENT" styleID="1" fgColor="AAAAAA" bgColor="FFFFFF" fontName="" fontStyle="0" />
|
||||
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="AAAAAA" bgColor="FFFFFF" fontName="" fontStyle="0" />
|
||||
<WordsStyle name="NUMBER" styleID="4" fgColor="A52A2A" bgColor="FFFFFF" fontName="" fontStyle="0" />
|
||||
<WordsStyle name="OPERATOR" styleID="10" fgColor="8000FF" bgColor="FFFFFF" fontName="" fontStyle="1" />
|
||||
<WordsStyle name="DELIMINER1" styleID="14" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
|
||||
<WordsStyle name="DELIMINER2" styleID="15" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
|
||||
<WordsStyle name="DELIMINER3" styleID="16" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
|
||||
</Styles>
|
||||
</UserLang>
|
||||
<!-- </NotepadPlus> -->
|
Loading…
Reference in New Issue
Block a user