@@ -22,6 +22,7 @@ import 'codemirror/addon/search/match-highlighter';
2222import 'codemirror/addon/search/jump-to-line' ;
2323import 'codemirror/addon/edit/matchbrackets' ;
2424import 'codemirror/addon/edit/closebrackets' ;
25+ import 'codemirror/addon/selection/mark-selection' ;
2526
2627import { JSHINT } from 'jshint' ;
2728import { CSSLint } from 'csslint' ;
@@ -37,7 +38,7 @@ import Timer from '../components/Timer';
3738import EditorAccessibility from '../components/EditorAccessibility' ;
3839import { metaKey , } from '../../../utils/metaKey' ;
3940
40- import search from '../../../utils/codemirror-search' ;
41+ import '../../../utils/codemirror-search' ;
4142
4243import beepUrl from '../../../sounds/audioAlert.mp3' ;
4344import UnsavedChangesDotIcon from '../../../images/unsaved-changes-dot.svg' ;
@@ -55,8 +56,6 @@ import * as UserActions from '../../User/actions';
5556import * as ToastActions from '../actions/toast' ;
5657import * as ConsoleActions from '../actions/console' ;
5758
58- search ( CodeMirror ) ;
59-
6059const beautifyCSS = beautifyJS . css ;
6160const beautifyHTML = beautifyJS . html ;
6261
@@ -107,6 +106,7 @@ class Editor extends React.Component {
107106 highlightSelectionMatches : true , // highlight current search match
108107 matchBrackets : true ,
109108 autoCloseBrackets : this . props . autocloseBracketsQuotes ,
109+ styleSelectedText : true ,
110110 lint : {
111111 onUpdateLinting : ( ( annotations ) => {
112112 this . props . hideRuntimeErrorWarning ( ) ;
0 commit comments