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 |
We're up and running!
April 9th, 2007
It took me most of Easter Saturday, but the transformation of TheVietnamTour's new setup is almost complete. There are a few extra things to add to the side bar, and possibly some template modifications to be done, but it's all looking good! I'm looking forward to getting some good syntax highlighting going and maybe type up some notes on how I got all this working, because it's not as simple as it should be.
Here I'll write up something about myself, maybe throw in a picture. For more details check out the 






