David Chambers  committed cc72545

specify languages for code blocks in README

  • Participants
  • Parent commits 664b2c8
  • Branches default

Comments (0)

Files changed (1)

 The element with the `contenteditable` attribute must be wrapped by an element
 with a class of `contenteditable`. To make an `h1` editable, for example, use:
+    :::html
     <h1 class=contenteditable><span contenteditable>Romeo & Juliet</span></h1>
 When a user clicks the editable text the browser inserts the caret as near as
 the editable element and selects its text. To take advantage of this handler,
 include CSS similar to the following:
+    :::css
     .contenteditable {
       display: inline-block;
       background: url(images/edit.png) no-repeat right;
 edited, in response to which it triggers a "contentedited" event. This custom
 event provides a hook for application code, which might be along these lines:
+    :::javascript
     $('#play').bind('contentedited', function (event) {
       $.post('/path/to/resource', {title: $(})