Enabling autocomplete for .API files?

狂风中的少年 提交于 2019-12-10 10:38:41

问题


Does anyone know how to get auto-complete working in Notepad++ using the .API files provided on the N++ site? Autocomplete works fine for me in languages which have an XML autocomplete file in the APIs folder, but completely non-functional for languages that use a .API file (ruby, AutoIt, others).

From what I've been able to find online, all one needs to do is copy the .API or .XML file into the APIs folder, and make sure that the filename matches the language name in the language menu. I quit N++ to make sure it isn't a matter of a refresh happening on start-up.

Per the N++ site, I copied Ruby.apt and AHK Autohotkey.api files into the APIs folder:

C:\Program Files\Notepad++\plugins\APIs

I'm running the newest Notepad++, v5.4.3. Tried it in Notepad++ 5.3.x on three machines before upgrading.


回答1:


Just use this one. Name it ruby.xml and place it in the plugins\APIs Folder

Notepad++ Ruby API XML File

I made it from the ruby.api file. But I guess it's not complete in regrad to the ruby standard library



来源:https://stackoverflow.com/questions/997011/enabling-autocomplete-for-api-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!