views:

6299

answers:

4

I am trying to add simple syntax highlighting and auto completion for a simple scripting language.

I added syntax highlighting using this article

Now I want to know how to enable auto completion with Notepad ++ for my custom language. Does anyone know how to do that?

+4  A: 

For basic autocompletion, have a look at the files in %ProgramFiles%\Notepad++\plugins\APIs. It's basically just an XML file with keywords in. If you want calltips ("function parameters hint"), check out these instructions.

I've never found any more documentation, but cpp.xml has a calltip for fopen, while php.xml is quite complete.

Mark
+1  A: 

I think I found the answer. Here is the link to the resource.

Chathuranga Chandrasekara
That's for pre-5.0
Mark
A: 

However, .API file auto-complete doesn't appear to work, at least in the installations of Notepad++ 5.3.x I've tried it in. Languages with an XML autocomplete file work fine (lisp, perl), but the languages for which I have an .API file (Ruby, AutoIt [AHK]) don't work. Manually pressing Ctrl-Space doesn't make a difference.

Good luck!

A: 

i see that i have to have a text.xml anyone know where i can get one to make the auto complete work for normal text?