Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <script type="text/javascript" src="prototype.js"></script> <script type="text/javascript"> function window_onload() { var template = $('template_id').cloneNode(true); template.id = 'some_unique_id1'; var element_of_template = $(template).select('#element_of_template_id')[0]; element_of_template.id = 'some_unique_id2'; element_of_template.innerHTML = 'NOOOOOOOOOOOOO'; element_of_template.observe('click', function() {alert('you clicked me');}); document.body.appendChild(template); } window.onload = window_onload; </script> </head> <body> <div id="template_id"> <div id="element_of_template_id">blabla</div> </div> </body> </html>
This paste will be private.
From the Design Piracy series on my blog: