void CBPHPCompleter::UpdateWordList() { CBStringCompleter::UpdateWordList(); // include HTML words const JCharacter** htmlWordList; JSize count = CBHTMLCompleter::GetDefaultWordList(&htmlWordList); for (JIndex i=0; i<count; i++) { Add(htmlWordList[i]); } CopyWordsFromStyler(CBHTMLStyler::Instance()); // include JavaScript words const JCharacter** jsWordList; count = CBJavaScriptCompleter::GetDefaultWordList(&jsWordList); for (JIndex i=0; i<count; i++) { Add(jsWordList[i]); } CopyWordsFromStyler(CBJavaScriptStyler::Instance()); CopySymbolsForLanguage(kCBJavaScriptLang); }
void CBStringCompleter::UpdateWordList() { // start with predefined keywords Reset(); // add words from styler's override list if (itsStyler != NULL) { CopyWordsFromStyler(itsStyler); } // add symbols from source code if (itsLanguage != kCBOtherLang) { CopySymbolsForLanguage(itsLanguage); } }