<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>vendor/plugins/filtered_column_code_macro/Rakefile</filename>
    </added>
    <added>
      <filename>vendor/plugins/filtered_column_code_macro/assets/default_codemacro.css</filename>
    </added>
    <added>
      <filename>vendor/plugins/filtered_column_code_macro/assets/default_coderay.css</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -26,6 +26,30 @@ environment, run:
 
   RAILS_ENV=production rake gems:install
 
+= Syntax Coloring for code listings
+
+Syntax coloring can be performed on code listings that occur in your articles
+by surrounding them with &lt;macro:code lang=&quot;ruby&quot;&gt;...&lt;/macro:code&gt; tags.  
+However, for this to work, your theme must provide CodeRay css styles.  If 
+you use the &lt;macro:code&gt; tags and don't see syntax coloring then the CodeRay
+styles may be added to your current theme by customizing the theme as follows:
+
+1.  Login to Admin (http://localhost:3000/admin) 
+2.  Select 'Design' tab
+3.  Click 'layout.liquid' in the list of templates in the right margin
+4.  In the textfield, scroll to the bottom of the {% head %}...{% endhead %}
+    section and insert the following 2 stylesheet link tags:
+
+&lt;link rel=&quot;stylesheet&quot; href=&quot;/plugin_assets/filtered_column_code_macro/default_codemacro.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; charset=&quot;utf-8&quot;&gt;
+&lt;link rel=&quot;stylesheet&quot; href=&quot;/plugin_assets/filtered_column_code_macro/default_coderay.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; charset=&quot;utf-8&quot;&gt;
+
+These stylesheets will not only add syntax coloring - but also wrap the code 
+listings with a div that will automatically add a horizontal scrollbar and 
+dynamically adjust the width of the code listing to fit your layout.  You may 
+want to update existing themes which already support syntax coloring to use 
+these new default stylesheets since existing themes usually only display code
+listings using a static width.
+
 = License
 
 Mephisto is distributed under the same license as Ruby on Rails. See</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -23,18 +23,20 @@ class CodeMacro &lt; FilteredColumn::Macros::Base
     options[:line_number_start] = attributes[:line_number_start].to_i unless attributes[:line_number_start].blank?
 
     inner_text = inner_text.gsub(/\A\r?\n/, '').chomp
-
+    html = &quot;&quot;
+    
     begin
-      CodeRay.scan(inner_text, lang.to_sym).html(options)
+      html = CodeRay.scan(inner_text, lang.to_sym).html(options)
     rescue ArgumentError
-      CodeRay.scan(inner_text, lang.to_sym).html(DEFAULT_OPTIONS)
+      html = CodeRay.scan(inner_text, lang.to_sym).html(DEFAULT_OPTIONS)
     rescue
       unless lang.blank?
         RAILS_DEFAULT_LOGGER.warn &quot;CodeRay Error: #{$!.message}&quot;
         RAILS_DEFAULT_LOGGER.debug $!.backtrace.join(&quot;\n&quot;)
       end
-      &quot;&lt;pre&gt;&lt;code&gt;#{CGI.escapeHTML(inner_text)}&lt;/code&gt;&lt;/pre&gt;&quot;
+      html = &quot;&lt;pre&gt;&lt;code&gt;#{CGI.escapeHTML(inner_text)}&lt;/code&gt;&lt;/pre&gt;&quot;
     end
+    &quot;&lt;div class=\&quot;CodeMacro\&quot;&gt;\n#{html}&lt;/div&gt;\n&quot;
   end
 end
 </diff>
      <filename>vendor/plugins/filtered_column_code_macro/lib/code_macro.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,53 +8,49 @@ class CodeMacroTest &lt; Test::Unit::TestCase
 
   def test_code_macro_with_language
     html = process_macros '&lt;macro:code lang=&quot;ruby&quot;&gt;assert_equal 4, 2 + 2&lt;/macro:code&gt;'
-    
-    expected = &quot;&lt;table class=\&quot;CodeRay\&quot;&gt;&lt;tr&gt;\n  &lt;td class=\&quot;line_numbers\&quot; title=\&quot;click to toggle\&quot; onclick=\&quot;with (this.firstChild.style) { display = (display == '') ? 'none' : '' }\&quot;&gt;&lt;pre&gt;&lt;tt&gt;\n&lt;/tt&gt;&lt;/pre&gt;&lt;/td&gt;\n  &lt;td class=\&quot;code\&quot;&gt;&lt;pre ondblclick=\&quot;with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }\&quot;&gt;assert_equal &lt;span class=\&quot;i\&quot;&gt;4&lt;/span&gt;, &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt; + &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;\n&lt;/tr&gt;&lt;/table&gt;\n&quot;
-    
+    expected = &quot;&lt;div class=\&quot;CodeMacro\&quot;&gt;\n&lt;table class=\&quot;CodeRay\&quot;&gt;&lt;tr&gt;\n  &lt;td class=\&quot;line_numbers\&quot; title=\&quot;click to toggle\&quot; onclick=\&quot;with (this.firstChild.style) { display = (display == '') ? 'none' : '' }\&quot;&gt;&lt;pre&gt;&lt;tt&gt;\n&lt;/tt&gt;&lt;/pre&gt;&lt;/td&gt;\n  &lt;td class=\&quot;code\&quot;&gt;&lt;pre ondblclick=\&quot;with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }\&quot;&gt;assert_equal &lt;span class=\&quot;i\&quot;&gt;4&lt;/span&gt;, &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt; + &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;\n&lt;/tr&gt;&lt;/table&gt;\n&lt;/div&gt;\n&quot;
     assert_equal expected, html
   end
 
   def test_code_macro_with_language_and_line_numbers
     html = process_macros '&lt;macro:code lang=&quot;ruby&quot; line_numbers=&quot;list&quot;&gt;assert_equal 4, 2 + 2&lt;/macro:code&gt;'
-    
-    expected = &quot;&lt;ol class=\&quot;CodeRay\&quot;&gt;\n&lt;li&gt;assert_equal &lt;span class=\&quot;i\&quot;&gt;4&lt;/span&gt;, &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt; + &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt;&lt;/li&gt;\n&lt;/ol&gt;\n&quot;
-    
+    expected = &quot;&lt;div class=\&quot;CodeMacro\&quot;&gt;\n&lt;ol class=\&quot;CodeRay\&quot;&gt;\n&lt;li&gt;assert_equal &lt;span class=\&quot;i\&quot;&gt;4&lt;/span&gt;, &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt; + &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt;&lt;/li&gt;\n&lt;/ol&gt;\n&lt;/div&gt;\n&quot;
     assert_equal expected, html
   end
 
   def test_should_strip_initial_and_trailing_newlines
     html = process_macros &quot;&lt;macro:code lang=\&quot;ruby\&quot; line_numbers=\&quot;list\&quot;&gt;\nassert_equal 4, 2 + 2\n&lt;/macro:code&gt;&quot;
-    expected = &quot;&lt;ol class=\&quot;CodeRay\&quot;&gt;\n&lt;li&gt;assert_equal &lt;span class=\&quot;i\&quot;&gt;4&lt;/span&gt;, &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt; + &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt;&lt;/li&gt;\n&lt;/ol&gt;\n&quot;
+    expected = &quot;&lt;div class=\&quot;CodeMacro\&quot;&gt;\n&lt;ol class=\&quot;CodeRay\&quot;&gt;\n&lt;li&gt;assert_equal &lt;span class=\&quot;i\&quot;&gt;4&lt;/span&gt;, &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt; + &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt;&lt;/li&gt;\n&lt;/ol&gt;\n&lt;/div&gt;\n&quot;
     assert_equal expected, html
   end
 
   def test_code_macro_with_invalid_line_numbers
     html = process_macros '&lt;macro:code line_numbers=&quot;whatever&quot; lang=&quot;ruby&quot;&gt;assert_equal 4, 2 + 2&lt;/macro:code&gt;'
-    expected = &quot;&lt;table class=\&quot;CodeRay\&quot;&gt;&lt;tr&gt;\n  &lt;td class=\&quot;line_numbers\&quot; title=\&quot;click to toggle\&quot; onclick=\&quot;with (this.firstChild.style) { display = (display == '') ? 'none' : '' }\&quot;&gt;&lt;pre&gt;&lt;tt&gt;\n&lt;/tt&gt;&lt;/pre&gt;&lt;/td&gt;\n  &lt;td class=\&quot;code\&quot;&gt;&lt;pre ondblclick=\&quot;with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }\&quot;&gt;assert_equal &lt;span class=\&quot;i\&quot;&gt;4&lt;/span&gt;, &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt; + &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;\n&lt;/tr&gt;&lt;/table&gt;\n&quot;
+    expected = &quot;&lt;div class=\&quot;CodeMacro\&quot;&gt;\n&lt;table class=\&quot;CodeRay\&quot;&gt;&lt;tr&gt;\n  &lt;td class=\&quot;line_numbers\&quot; title=\&quot;click to toggle\&quot; onclick=\&quot;with (this.firstChild.style) { display = (display == '') ? 'none' : '' }\&quot;&gt;&lt;pre&gt;&lt;tt&gt;\n&lt;/tt&gt;&lt;/pre&gt;&lt;/td&gt;\n  &lt;td class=\&quot;code\&quot;&gt;&lt;pre ondblclick=\&quot;with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }\&quot;&gt;assert_equal &lt;span class=\&quot;i\&quot;&gt;4&lt;/span&gt;, &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt; + &lt;span class=\&quot;i\&quot;&gt;2&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;\n&lt;/tr&gt;&lt;/table&gt;\n&lt;/div&gt;\n&quot;
     assert_equal expected, html
   end
 
   def test_code_macro_without_language
     html = process_macros '&lt;macro:code&gt;assert_equal 4, 2 + 2&lt;/macro:code&gt;'
-    expected = '&lt;pre&gt;&lt;code&gt;assert_equal 4, 2 + 2&lt;/code&gt;&lt;/pre&gt;'
+    expected = &quot;&lt;div class=\&quot;CodeMacro\&quot;&gt;\n&lt;pre&gt;&lt;code&gt;assert_equal 4, 2 + 2&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;\n&quot;
     assert_equal expected, html
   end
 
   def test_code_macro_with_invalid_line_numbers_and_language
     html = process_macros '&lt;macro:code line_numbers=&quot;whatever&quot;&gt;assert_equal 4, 2 + 2&lt;/macro:code&gt;'
-    expected = '&lt;pre&gt;&lt;code&gt;assert_equal 4, 2 + 2&lt;/code&gt;&lt;/pre&gt;'
+    expected = &quot;&lt;div class=\&quot;CodeMacro\&quot;&gt;\n&lt;pre&gt;&lt;code&gt;assert_equal 4, 2 + 2&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;\n&quot;
     assert_equal expected, html
   end
 
   def test_code_macro_with_embedded_html_chars
     html = process_macros '&lt;macro:code lang=&quot;ruby&quot;&gt;x &lt; y&lt;/macro:code&gt;'
-    expected = &quot;&lt;table class=\&quot;CodeRay\&quot;&gt;&lt;tr&gt;\n  &lt;td class=\&quot;line_numbers\&quot; title=\&quot;click to toggle\&quot; onclick=\&quot;with (this.firstChild.style) { display = (display == '') ? 'none' : '' }\&quot;&gt;&lt;pre&gt;&lt;tt&gt;\n&lt;/tt&gt;&lt;/pre&gt;&lt;/td&gt;\n  &lt;td class=\&quot;code\&quot;&gt;&lt;pre ondblclick=\&quot;with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }\&quot;&gt;x &amp;lt; y&lt;/pre&gt;&lt;/td&gt;\n&lt;/tr&gt;&lt;/table&gt;\n&quot;
+    expected = &quot;&lt;div class=\&quot;CodeMacro\&quot;&gt;\n&lt;table class=\&quot;CodeRay\&quot;&gt;&lt;tr&gt;\n  &lt;td class=\&quot;line_numbers\&quot; title=\&quot;click to toggle\&quot; onclick=\&quot;with (this.firstChild.style) { display = (display == '') ? 'none' : '' }\&quot;&gt;&lt;pre&gt;&lt;tt&gt;\n&lt;/tt&gt;&lt;/pre&gt;&lt;/td&gt;\n  &lt;td class=\&quot;code\&quot;&gt;&lt;pre ondblclick=\&quot;with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }\&quot;&gt;x &amp;lt; y&lt;/pre&gt;&lt;/td&gt;\n&lt;/tr&gt;&lt;/table&gt;\n&lt;/div&gt;\n&quot;
     assert_equal expected, html
   end
 
   def test_code_macro_with_embedded_html_chars_and_no_lang
     html = process_macros '&lt;macro:code&gt;x &lt; y&lt;/macro:code&gt;'
-    expected = &quot;&lt;pre&gt;&lt;code&gt;x &amp;lt; y&lt;/code&gt;&lt;/pre&gt;&quot;
+    expected = &quot;&lt;div class=\&quot;CodeMacro\&quot;&gt;\n&lt;pre&gt;&lt;code&gt;x &amp;lt; y&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;\n&quot;
     assert_equal expected, html
   end
   </diff>
      <filename>vendor/plugins/filtered_column_code_macro/test/code_macro_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1473acf8307ec21d2002acab94691841d8003580</id>
    </parent>
  </parents>
  <author>
    <name>Dan Lynn</name>
    <email>git@danlynn.org</email>
  </author>
  <url>http://github.com/emk/mephisto/commit/b421706d759ee7749e9d448fbce3dc3bf89d0927</url>
  <id>b421706d759ee7749e9d448fbce3dc3bf89d0927</id>
  <committed-date>2009-02-09T13:21:49-08:00</committed-date>
  <authored-date>2009-02-09T13:21:49-08:00</authored-date>
  <message>Add default codemacro stylesheets for theme usage.

Updated main README with instructions on how to 
link to these stylesheets.  A codemacro Rakefile 
was added with tasks to test the plugin and 
generate a new default_coderay.css stylesheet.  
The codemacro plugin now wraps all code listings 
in a &lt;div&gt; enabling horizontal scrolling and 
dynamic width.</message>
  <tree>e6b6df2cea1d78ac0a2f9a565f699c7fbfcd198e</tree>
  <committer>
    <name>Dan Lynn</name>
    <email>git@danlynn.org</email>
  </committer>
</commit>
