Can't get autoComplete to work with UDL
-
For the last couple of days I’ve been trying to make an autocomplete-file for a custom language. The extension of the language is “filter”. The UDL works fine, but I cannot get the autocomplete to work. I have checked other autocomplete-files and compared them with mine to see what I’m doing wrong. I completely stuck. Maybe someone can tell me what I’m doing wrong.
1- I placed the filter.xml in C:\Program Files\Notepad++\autoCompletion.
2- restarted np++
3- created a file called “test.filter”
4- opened the file with np++
5- language gets detected perfectly
6- start to type “bl” <- autocomplete not starting
7- I typed “blue” and created a new line
8- I typed “bl” and the autocomplete showedThe autocomplete is suppose to show me 2 keywords: “Blue” and “BlightedMap”, but it only shows the word(s) I already typed.
Here’s a screeny of my UDL
I have checked other files, examples locally and on the internet etc and they all work, but somehow mine doesn’t. There has to be something I’m missing. It’s driving me crazy.
Thanks for the help in advance.
-
@JajinderK said in Can't get autoComplete to work with UDL:
The extension of the language is “filter”.
What’s the name of the UDL? Your screenshot shows your window is too narrow to show the UDL name in full in the status bar, and you snipped the Define Your Language dialog too much, so we cannot see it there, either.
The auto completion XML filename must match the name of the UDL, not the extension.
-
@PeterJones said in Can't get autoComplete to work with UDL:
The auto completion XML filename must match the name of the UDL, not the extension.
Thank you for this. I was under the impression it had to be the extension name. I changed the name and it works now. Thanks again.