Code Syntax Highlighting
April 9th, 2007
Taken from the advice given here...
- http://mephisto.stikipad.com/help/show/Code+Syntax+Highlighting
- http://blog.transphorm.com/2006/12/20/syntax-highlighting-in-mephisto-the-easy-way
- and this link http://groups.google.com/group/MephistoBlog/...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
class API @@auth = {} @@host = 'api.del.icio.us' @@base_url = '/v1' @@user_agent = 'Del.icio.us Ruby API 0.1' @@cache_class = Cache::Basic @@cache = @@cache_class.new @@expire_cache_every = 1.days @@auto_expire_cache = true cattr_accessor :auth, :host, :base_url, :cache, :user_agent, :cache_class, :expire_cache_every cattr_accessor :auto_expire_cache def initialize(props={}) props.each do |key, val| setter = "#{key}=".intern self.send setter, val if respond_to? setter end end end |
Here I'll write up something about myself, maybe throw in a picture. For more details check out the 






