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

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: design.md notes 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
« no previous file with comments | « experimental/webtry/res/js/webtry.js ('k') | experimental/webtry/templates/iframe.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/templates/content.html
diff --git a/experimental/webtry/templates/content.html b/experimental/webtry/templates/content.html
index 06e2e6d4d31ba5b4c9b7b13d03c8e7bccbde98dd..5f5a98cf984596e4af9780cf96715856cb3aee69 100644
--- a/experimental/webtry/templates/content.html
+++ b/experimental/webtry/templates/content.html
@@ -1,11 +1,11 @@
<section id=content>
- <pre><code>#include "SkCanvas.h"
+ <script src="/res/js/cm/codemirror.js"></script>
+ <script src="/res/js/cm/clike.js"></script>
-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='100'>{{.Code}}</textarea>
+ </pre>
<input type='button' value='Run' id='run'>
<a href='{{if .Hash}}/c/{{.Hash}}{{end}}' target=_blank id=permalink>Share</a>
« no previous file with comments | « experimental/webtry/res/js/webtry.js ('k') | experimental/webtry/templates/iframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698