Adding a user-defined language in Notepad++

前端 未结 8 1190
萌比男神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:56

    I share the solution I found for Notepad++ 6.5, because I had the same issue than the previous messages.

    1. If not done, do the install steps explained in go\misc\notepadplus\README (userDefineLang.xml,functionList.xml,APIs). When you don 't have useDefineLang.xml in Notepad++, create one using the file from go\misc\notepadplus\useDefineLang.xml, but don't forget to add the first line and uncomment NotepadPlus part to have at the beginning and at the end.

    2. Change in functionList.xml: BY

    3. As I didn't have any userDefineLang.xml file by default in Notepad++, I imported this file using the menu LanguageDefine your language → *Import. Then stop/start Notepad++. Check that Go is in the Language menu at the end of the list. Open a .go file. If the color doesn't change automatically click on go in /Language menu

    All were OK after that for me (indentation, color, autocompletion, etc.).

提交回复
热议问题