implement word hiliting--needs to be redone in C, but good enough for now