src/GenSynth.php
function remove_keyword($key, $word, $recompile = true)
    {
        $key_to_remove = array_search($word, $this->language_data['KEYWORDS'][$key]);
        if ($key_to_remove !== false) {
            unset($this->language_data['KEYWORDS'][$key][$key_to_remove]);

            //NEW in 1.0.8, optionally recompile keyword group
            if ($recompile && $this->parse_cache_built) {
                $this->optimize_keyword_group($key);
            }
        }
    }
function remove_keyword($key, $word, $recompile = true)
    {
        $key_to_remove = array_search($word, $this->language_data['KEYWORDS'][$key]);
        if ($key_to_remove !== false) {
            unset($this->language_data['KEYWORDS'][$key][$key_to_remove]);

            //NEW in 1.0.8, optionally recompile keyword group
            if ($recompile && $this->parse_cache_built) {
                $this->optimize_keyword_group($key);
            }
        }
    }
function remove_keyword ( $ key , $ word , $ recompile = true ) { $ key_to_remove = array_search ( $ word , $ this -> language_data [ 'KEYWORDS' ] [ $ key ] ) ; if ( $ key_to_remove !== false ) { unset ( $ this -> language_data [ 'KEYWORDS' ] [ $ key ] [ $ key_to_remove ] ) ; //NEW in 1.0.8, optionally recompile keyword group
 if ( $ recompile && $ this -> parse_cache_built ) { $ this -> optimize_keyword_group ( $ key ) ; } } }
Removes a keyword from a keyword group

@param int    The key of the keyword group to remove the keyword from
@param string The word to remove from the keyword group
@param bool   Wether to automatically recompile the optimized regexp list or not.
Note: if you set this to false and @see GenSynth->parse_code() was already called once,
for the current language, you have to manually call @see GenSynth->optimize_keyword_group()
or the removed keyword will stay in cache and still be highlighted! On the other hand
it might be too expensive to recompile the regexp list for every removal if you want to
remove a lot of keywords.
Removes a keyword from a keyword group