From 8923da27c4805ad0487709e089c77ab37b4c91e9 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 19 Sep 2019 14:40:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/page/component/monaco/TPIMonaco.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/react/src/modules/page/component/monaco/TPIMonaco.js b/public/react/src/modules/page/component/monaco/TPIMonaco.js index 615623cd1..a9820ad27 100644 --- a/public/react/src/modules/page/component/monaco/TPIMonaco.js +++ b/public/react/src/modules/page/component/monaco/TPIMonaco.js @@ -17,6 +17,8 @@ import * as monaco from 'monaco-editor' import { fromStore, toStore } from 'educoder' import './TPIMonacoConfig' + +// https://microsoft.github.io/monaco-editor/playground.html#customizing-the-appearence-exposed-colors monaco.editor.defineTheme('myCoolTheme', { base: 'vs-dark', inherit: true, @@ -35,6 +37,8 @@ monaco.editor.defineTheme('myCoolTheme', { // 'input.border': '#ffffff', 'editor.lineHighlightBorder': '#222c34', // .current-line + // 'editor.selectionBackground': '#FFFF0030', + // 'editor.selectionHighlightBackground' :'#0000FFFF', } });