Permalink
Browse files

Add sublime-like highlighting to matching strings

  • Loading branch information...
1 parent 9fe157d commit 2f37628aac5da40b0b43efb071cfa05e91667976 @remy remy committed Apr 3, 2013
Showing with 8 additions and 1 deletion.
  1. +1 −1 package.json
  2. +4 −0 public/css/style.css
  3. +1 −0 public/js/editors/panel.js
  4. +2 −0 scripts.json
View
2 package.json
@@ -9,7 +9,7 @@
"name": "jsbin",
"description": "Collaborative JavaScript Debugging App",
"main": "./lib/app",
- "version": "3.2.23",
+ "version": "3.2.24",
"preferGlobal": "true",
"homepage": "http://jsbin.com",
"bin": "./bin/jsbin",
View
4 public/css/style.css
@@ -3345,4 +3345,8 @@ THE SOFTWARE.
.focus .CodeMirror-activeline .CodeMirror-linenumber,
.focus .CodeMirror-activeline-background {
background: #e8f2ff !important;
+}
+
+.CodeMirror-focused .cm-matchhighlight {
+ outline: 1px solid #666;
}
View
1 public/js/editors/panel.js
@@ -137,6 +137,7 @@ var Panel = function (name, settings) {
mode: editorModes[panelLanguage],
lineWrapping: true,
styleActiveLine: true,
+ highlightSelectionMatches: true,
theme: jsbin.settings.theme || 'jsbin'
};
View
2 scripts.json
@@ -15,6 +15,8 @@
"/js/vendor/codemirror3/addon/edit/matchbrackets.js",
"/js/vendor/codemirror3/addon/fold/foldcode.js",
"/js/vendor/codemirror3/addon/selection/active-line.js",
+"/js/vendor/codemirror3/addon/search/searchcursor.js",
+"/js/vendor/codemirror3/addon/search/match-highlighter.js",
"/js/vendor/json2.js",
"/js/vendor/prettyprint.js",
"/js/chrome/storage.js",

0 comments on commit 2f37628

Please sign in to comment.