

Can mess with the User-Defined Dialogue box to change these color settings.įor more advanced users, you can also customize the functions to use whatever module's functions your site has, by running the php file included.Īka take the code in the drupal_autocomplete.php and paste it into a new drupal Page set with the Php Filter, and submit the page. but I like them more highlighted with the magenta color, your choice. Or set the colors of Drupal functions to be swapped with the 3rd Keyword List in the Keyword List tab, so Drupal functions show up as the 'drupal blue' color. (but this messes up other things like $theme would now be highlighted even though not intended as a $keyword, your choice). Just type functions and should autocomplete and highlight when matches a keyword/func.įor some reason if you need to use uppercase keywords like MENU_CALLBACK that you can't remember, type Control+Enter and choose it from drop-down (for some reason it doesn't autocomplete for now UPPERCASE keywords, will look into it).Īlso sometimes I go into (Notepad++)- >View tab->User-Defined Dialogue->pick drupal from the drop down->Operators tab, and add $ to my list of operators so common other keywords i have added like _SESSION,_POST,form_state,form_id show up as colored even if operator like $ is in front of it. NOTE: if you have a custom User Defined Language already setup in Notepad++, then paste the XML appropriately in this file so won't overwrite your changes, but most people will not have defined custom language already so you'll be good).


Then put userDefineLang.xml in "C:\Program Files\Notepad++\plugins\APIs" (this sets up the highlighting of all keywords, Now paste the drupal.xml file into "C:\Documents and Settings\$$$$_YOUR_USERNAME_$$$$\Application Data\Notepad++" (this sets up autocompletion of all keywords and functions) Īnd also news on it on the forum (check the last post, since can't update the links on first post):įirst goto (Notepad++)->Settings tab->Preferences, and goto Backup/Auto-Completion,Ĭheck "Enable Autocomplete on each input"Ĭhoose 'Function Completion' radio buttonįrom the 1-th character (or 3, whatever you want to start autocompletion after X characters)Ĭheck "Function parameters hint on input". It is custom to my system so you can use just those.
