Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## HAML %div %~{:height=>2} Hello world %div/ %div ~#uniq{:height=>2} Hello world %div/ %div ~.many{:height=>2}Hello world %div/ %div %img{:height=>2}/ %~img{:height=>2}/ %~img{:height=>2}/ %img{:height=>2}/ %div/ %div %span{:height=>2} Hello %~span{:height=>2} World %~span{:height=>2} Hello %span{:height=>2} World %div/ ## HTML [html_xml] <div>< div height="2"> Hello world</div ><div/> </div> <div>< div id="uniq" height="2"> Hello world</div ><div/> </div> <div>< div class="many" height="2">Hello world</div ><div/> </div> <div> <img height="2"/>< img height="2" /><img height="2" /><img height="2"/> <div/> </div> <div> <span height="2"> Hello</span>< span height="2"> World</span ><span height="2"> Hello</span ><span height="2"> World</span> <div/> </div>
This paste will be private.
From the Design Piracy series on my blog: