Update: (28 June 2013; lots of folks still land on this blog post) Notepad++ 6.3.3 now uses DSpellCheck. The default dictionary is not US English. If you check this page (scroll down a bit) you’ll learn not only where the default dictionaries are installed, but that you can change it through the settings. That means you can put your User Dictionary file in a folder you own on Windows 7. You can find alternative dictionaries here. Download, unzip and put it either in the default location or someplace else and change the settings to find it. Enjoy.
Original Post:
You are surely aware Win7 is pretty cranky with permissions and the UAC. But it’s also good protection from sneaky installers and such. If you like the Notepad++ editor and want spellchecking, you’ll need to install Aspell with the appropriate language spelling dictionary.
The problem is you can’t use the built-in functions to add words directly which aren’t already in your Aspell dictionary. If you try, you’ll get an error about lacking permission to write to some file. There is a user dictionary function, but Win7 tends to block that as implemented in Notepad++ and there probably won’t be a fix any time soon (the problem is with Aspell, not Notepad++). Nor is it easy to figure out the work-around.
Here’s what I do: First, create in your own user Documents folder a plain text file en.pws. The top line must be as follows:
personal_ws-1.1 en 13
The “en” part is simply the Aspell language abbreviation for English. Please note the number at the end must indicate the number of words in your personal dictionary. Right now, I have thirteen words. They must be stacked below this line, one word per line. I put them in alphabetical order and ignore case for my own use.
Then place a copy of this file in the top Aspell folder where it’s installed. On my Win7 64-bit, that’s:
C:\Program Files (x86)\Aspell
You’ll get an argument from UAC, but it can be easily overcome if your user account as Admin rights. As you use the editor, whenever Aspell finds a word it doesn’t recognize, and you know it’s correct, simply note the word and add it to your copy of the personal user dictionary in your Documents folder. In fact, I tend to open the dictionary file in a separate tab while editing other files. Be sure to increment the count in the top line to match the number of words. You may need to run the spellcheck more than once to be sure you caught all the words. Then copy this file again, overwriting the last copy you placed in the Aspell program folder. After a while, you should find yourself doing this less and less.
Enjoy!
