Commit d5780eb786f81b04cb56bc4b8c75e93472b4b865
1 parent
42cc1b2f
Exists in
master
and in
29 other branches
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,7 +14,15 @@ | ||
14 | <p><%= _('Numbered lists:') %></p> | 14 | <p><%= _('Numbered lists:') %></p> |
15 | <pre># <%= _('first item') %> | 15 | <pre># <%= _('first item') %> |
16 | # <%= _('second item') %></pre> | 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 | +<pre> | ||
20 | +<code> | ||
21 | + a.gsub!( /</, '' ) | ||
22 | +</code> | ||
23 | +</pre> | ||
24 | +</pre> | ||
25 | + <p><%= _('See also a more complete <a href="%s">Textile Reference</a>.') % 'http://redcloth.org/hobix.com/textile/' %></p> | ||
18 | </div> | 26 | </div> |
19 | </div> | 27 | </div> |
20 | 28 |