Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: experimental/webtry/templates/content.html

Issue 261693003: Use CodeMirror for WebTry snippets. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Rebased. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/webtry/templates/content.html
diff --git a/experimental/webtry/templates/content.html b/experimental/webtry/templates/content.html
index 06e2e6d4d31ba5b4c9b7b13d03c8e7bccbde98dd..33da3161ca7717e8750f7424800a5f55e332fecd 100644
--- a/experimental/webtry/templates/content.html
+++ b/experimental/webtry/templates/content.html
@@ -1,11 +1,8 @@
<section id=content>
- <pre><code>#include "SkCanvas.h"
-
-void draw(SkCanvas* canvas) {
- <textarea spellcheck=false name='code' id='code' rows='15' cols='80'>{{.Code}}</textarea>
-}
-</code></pre>
+ <pre>
+ <textarea spellcheck=false name='code' id='code' rows='15' cols='80'>{{.Code}}</textarea>
+ </pre>
<input type='button' value='Run' id='run'>
<a href='{{if .Hash}}/c/{{.Hash}}{{end}}' target=_blank id=permalink>Share</a>

Powered by Google App Engine
This is Rietveld 408576698