1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:04:44 -07:00
go/misc/notepadplus
ChaiShushan c44e483542 misc/notepadplus: use new User Defined Language system (UDL2)
Add missing single quotation and backslash marks.

Change dot and underscore character keyword type.
"_" is a predeclared identifier, not a operator.
"." is a selector, x.f should be one identifier highlight.
So the fix is to change it.

Fixes #5775.
Fixes #5788.
Fixes #5798.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/10480044
2013-07-27 08:12:42 +10:00
..
go.xml misc/notepadplus: add missing delete keyword 2013-06-24 13:28:10 +10:00
README misc/notepadplus: use new User Defined Language system (UDL2) 2013-07-27 08:12:42 +10:00
userDefineLang.xml misc/notepadplus: use new User Defined Language system (UDL2) 2013-07-27 08:12:42 +10:00

Notepad++ syntax highlighting
-----------------------------

The userDefineLang.xml uses the new User Defined Language system (UDL2),
which needs Notepad++ v6.2 or higher.

Installing from Notepad++ Installer

  1. Add the contents of userDefineLang.xml at %APPDATA%\Notepad++\userDefineLang.xml
     between <NotepadPlus> ... </NotepadPlus>
  2. Restart Notepad++

Installing from Notepad++ zip/7z package

  1. Given a Notepad++ installation at <DIR>.
  2. Add the contents of userDefineLang.xml at <DIR>\userDefineLang.xml
     between <NotepadPlus> ... </NotepadPlus>
  3. Restart Notepad++

Reference

  1. http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Languages
  2. http://notepad-plus-plus.org/news/notepad-6.2-release-udl2.html
  3. http://udl20.weebly.com/index.html


Notepad++ keyword auto-completion
---------------------------------

  1. Given a Notepad++ installation at <DIR>.
  2. Copy go.xml to <DIR>\plugins\APIs
  3. Restart Notepad++

Reference

  1. http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Auto_Completion