Skip to content

Instantly share code, notes, and snippets.

@jugyo
Created August 12, 2009 07:02
Show Gist options
  • Save jugyo/166355 to your computer and use it in GitHub Desktop.
Save jugyo/166355 to your computer and use it in GitHub Desktop.
# ~/.termtter/config
Termtter::Client.init do |t|
...
t.register_hook(:highlight_keywords, :point => :pre_coloring) do |text, event|
text.gsub(/(@jugyo|termtter)/i, '<on_red><white>\1</white></on_red>')
end
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment