Adding a user-defined language in Notepad++

前端 未结 8 1212
萌比男神i
萌比男神i 2021-01-31 13:58

I\'m trying to add the syntax plugin for the Go programming language in Notepad++.

There is a repository for such user-defined languages. I downloaded and unzip

8条回答
  •  没有蜡笔的小新
    2021-01-31 14:54

    New install of Notepad++ 6.4.5 on Windows 7 64 bit

    Download from Notepad++ site:

    http://docs.notepad-plus-plus.org/index.php?title=User_Defined_Language_Files#G

    Copy "go.xml" to C:\Program Files (x86)\Notepad++\plugins\APIs.

    The default install doesn't have any user-defined languages, so you can do this:

    • Copy "userDefineLang_Go.xml" to C:\Users\\AppData\Roaming\Notepad++
    • Remove the "_Go" from the file name, so it's "userDefineLang.xml"
    • Uncomment the opening and closing "NotepadPlus" tags.

    (If you already have a userDefineLang.xml then add the content from the _Go file.)

    Restart Notepad++.

提交回复
热议问题