To further enhance Notepad++ as an editor for SQRs, I'll show you how to add Function Completion. Function Completion is where the names of the functions will appear when you type the first letter of the word. Below is an example:
Notepad++ provides you with the ability to add a custom function list to each user-defined language you added. In this case I will provide you with function list file and help you configure Notepad++ to recognize it.
Setup Steps:
- Ensure you have installed the SQR User-Defined language file. (See my post here for help with this)
- Download and save the file below to your Notepad++ Plugin API directory (by default located at C:\Program Files\Notepad++\plugins\APIs)
SQR Function Completion XML File(3.61 kb)
(File name should be saved as sqr.xml. My blog engine seems to be modifying the filename)
- Under the Settings Menu, Choose Preferences
- Click on the Backup/Auto-completion tab
- Make the "Enable Auto-completion on each input" checkbox checked and the Function Completion radio button is selected
- You can also check the Function Parameter hint on input is checked. (The current version of the SQR file does not include this but I may add it in the future)
- Click Close
- Restart Notepad++
To test if you were successful:
- Open Notepad++
- On a new document, Choose Language then SQR (way at the bottom of the list)
- Go back into the document. Type BE, you should see the function completion appear
- Use your arrow keys to scroll through the list and press enter when you are on the procedure you want.