<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1,2 @@
 pkg
+tmtags</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -40,7 +40,8 @@ module Chit
         search_title
       end
     else
-      show(sheet_file)
+      format = 'html' if args.delete('--html')
+      show(sheet_file,format)
     end
   end
   
@@ -160,11 +161,17 @@ module Chit
     File.join(CONFIG['root'], 'private')
   end
   
-  def show(file)
+  def show(file,format=nil)
     sheet = YAML.load(IO.read(file)).to_a.first
     sheet[-1] = sheet.last.join(&quot;\n&quot;) if sheet[-1].is_a?(Array)
-    puts sheet.first + ':'
-    puts '  ' + sheet.last.gsub(&quot;\r&quot;,'').gsub(&quot;\n&quot;, &quot;\n  &quot;).wrap
+    case format
+    when 'html'
+      puts &quot;&lt;h1&gt;#{sheet.first}&lt;/h1&gt;&quot;
+      puts &quot;&lt;pre&gt;#{sheet.last.gsub(&quot;\r&quot;,'').gsub(&quot;\n&quot;, &quot;\n  &quot;).wrap}&lt;/pre&gt;&quot;
+    else
+      puts sheet.first + ':'
+      puts '  ' + sheet.last.gsub(&quot;\r&quot;,'').gsub(&quot;\n&quot;, &quot;\n  &quot;).wrap      
+    end
   end
   
   def rm(file)</diff>
      <filename>lib/chit.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6f8ae618e16ccbe62f5b0fe59f4e76036c115a9a</id>
    </parent>
  </parents>
  <author>
    <name>Robin Lu</name>
    <email>iamawalrus@gmail.com</email>
  </author>
  <url>http://github.com/robin/chit/commit/89d76920627be7b8aad3cd59ffa64e3aecbd8935</url>
  <id>89d76920627be7b8aad3cd59ffa64e3aecbd8935</id>
  <committed-date>2008-06-22T06:23:32-07:00</committed-date>
  <authored-date>2008-06-22T06:23:32-07:00</authored-date>
  <message>show cheat sheet in html format</message>
  <tree>888d6d819b33b41a7e9606d82f0449ef24c4fbdb</tree>
  <committer>
    <name>Robin Lu</name>
    <email>iamawalrus@gmail.com</email>
  </committer>
</commit>
