Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pretty Printer Used

  • Loading branch information...
commit 692f2403cdbdc30d054b3a10adad3f19c9b731a8 1 parent 1350c4c
@dvberkel authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 client/plugins/code.coffee
  2. +2 −2 client/plugins/code.js
View
4 client/plugins/code.coffee
@@ -1,4 +1,4 @@
window.plugins.code =
- emit: (div, item) -> div.append "<pre>#{item.text}</pre>"
+ emit: (div, item) -> div.append "<pre class='prettyprint'>#{prettyPrintOne(item.text)}</pre>"
bind: (div, item) ->
- div.dblclick -> textEditor div, item
+ div.dblclick -> wiki.textEditor div, item
View
4 client/plugins/code.js
@@ -2,11 +2,11 @@
window.plugins.code = {
emit: function(div, item) {
- return div.append("<pre>" + item.text + "</pre>");
+ return div.append("<pre class='prettyprint'>" + (prettyPrintOne(item.text)) + "</pre>");
},
bind: function(div, item) {
return div.dblclick(function() {
- return textEditor(div, item);
+ return wiki.textEditor(div, item);
});
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.