Update the rule of highlight and key binding.