Skip to content

Commit

Permalink
fixed syntax higlight
Browse files Browse the repository at this point in the history
  • Loading branch information
anishagg17 committed Mar 3, 2020
1 parent 400ca00 commit 985b4cd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"lodash": "^4.17.11",
"numeral": "^2.0.6",
"prop-types": "^15.6.0",
"react-ace": "8.0.0",
"react-ace": "^8.0.0",
"react-beautiful-dnd": "^10.1.0",
"react-focus-lock": "^1.17.7",
"react-input-autosize": "^2.2.2",
Expand Down
8 changes: 4 additions & 4 deletions src-docs/src/views/code_editor/code_editor.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { Component } from 'react';

// import 'brace/theme/github';
// import 'brace/mode/javascript';
// import 'brace/snippets/javascript';
// import 'brace/ext/language_tools';
import 'ace-builds/src-noconflict/snippets/javascript';
import 'ace-builds/src-noconflict/mode-javascript';
import 'ace-builds/src-noconflict/theme-github';
import 'ace-builds/src-noconflict/ext-language_tools';

import { EuiCodeEditor } from '../../../../src/components';

Expand Down
4 changes: 3 additions & 1 deletion src-docs/src/views/code_editor/custom_mode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { Component } from 'react';
// import 'brace/mode/text';

import 'ace-builds/src-noconflict/mode-text';
import 'ace-builds/src-noconflict/theme-github';

import { EuiCodeEditor } from '../../../../src/components';

Expand Down
5 changes: 2 additions & 3 deletions src-docs/src/views/code_editor/read_only.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { Component } from 'react';

// import 'brace/mode/less';
// import 'brace/theme/github';
import 'ace-builds/src-noconflict/mode-less';
import 'ace-builds/src-noconflict/theme-github';

import { EuiCodeEditor } from '../../../../src/components';

Expand Down

0 comments on commit 985b4cd

Please sign in to comment.