List Info

Thread: :markdown and code blocks




:markdown and code blocks
user name
2008-01-02 19:52:08
I know there's already a lot of posts on this topic, but I
can't find
a answer to this simple problem:

What is the most elegant way to author code blocks in haml?

So far using :markdown seems to get me the closest, but I
still have
problems. Here's my example


:markdown
      <sample code>
      ...more sample code

this generates

<pre><code>&lt;sample code&gt;
  ...more sample code
  </code></pre>

which is almost fine. The problem is the spaces that are
prepended to
the "...more sample code" line - I don't want
them! I know this can be
solved by pushing the sample code into a partial or a
helper, but I'd
like to have it inline if possible. Any suggestions?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )