Commit d5780eb786f81b04cb56bc4b8c75e93472b4b865

Authored by Antonio Terceiro
1 parent 42cc1b2f

Add syntax for code to textile quick reference

Showing 1 changed file with 9 additions and 1 deletions   Show diff stats
app/views/cms/_textile_quick_reference.rhtml
... ... @@ -14,7 +14,15 @@
14 14 <p><%= _('Numbered lists:') %></p>
15 15 <pre># <%= _('first item') %>
16 16 # <%= _('second item') %></pre>
17   - <p><%= _('See also a more complete <a href="%s">Textile Reference</a>') % 'http://redcloth.org/hobix.com/textile/' %></p>
  17 + <p><%= h(_('For code, use HTML tags <pre> and <code>, and indent the code inside them:')) %>
  18 + <pre>
  19 +&lt;pre&gt;
  20 +&lt;code&gt;
  21 + a.gsub!( /&lt;/, '' )
  22 +&lt;/code&gt;
  23 +&lt;/pre&gt;
  24 +</pre>
  25 + <p><%= _('See also a more complete <a href="%s">Textile Reference</a>.') % 'http://redcloth.org/hobix.com/textile/' %></p>
18 26 </div>
19 27 </div>
20 28  
... ...