diff --git a/src/index.html b/src/index.html
index aa72feb..eb7f3c7 100644
--- a/src/index.html
+++ b/src/index.html
@@ -4,6 +4,7 @@
Web Maker
+
@@ -367,6 +368,11 @@
+
+
+
+
+
diff --git a/src/script.js b/src/script.js
index 8166b93..57be300 100644
--- a/src/script.js
+++ b/src/script.js
@@ -758,6 +758,10 @@ settingsBtn, onboardModal, notificationsBtn, onboardShowInTabOptionBtn, onboardD
scope.setPreviewContent();
}, updateDelay);
});
+ cm.on('inputRead', function onChange(cm, input) {
+ if (input.text[0] === ';') { return; }
+ CodeMirror.commands.autocomplete(cm, null, { completeSingle: false })
+ });
return cm;
}
diff --git a/src/style.css b/src/style.css
index 0c6de6f..4610729 100644
--- a/src/style.css
+++ b/src/style.css
@@ -8,6 +8,7 @@
:root {
--color-bg: #252637;
--color-sidebar: #3A2B63;
+ --code-font-size: 16px;
}
body {
margin: 0;
@@ -191,7 +192,7 @@ select, input[type="text"], textarea {
.Codemirror {
width: 100%;
height: calc(100% - 25px); /* 25px for headerĀ */
- font-size: 16px;
+ font-size: var(--code-font-size);
}
.layout-2 .is-minimized .Codemirror {
height: calc(100%);
@@ -215,7 +216,19 @@ select, input[type="text"], textarea {
.CodeMirror-gutter-wrapper:hover .CodeMirror-guttermarker-subtle {
/*visibility: visible;*/
}
-
+.CodeMirror-hints {
+ font-size: var(--code-font-size);
+ border: 0;
+ background: #1e1e2c;
+}
+.CodeMirror-hint {
+ color: #bbb;
+ padding: 2px 4px;
+}
+li.CodeMirror-hint-active {
+ background: #5b429d;
+ /*color: white;*/
+}
#demo-frame {
border: 0;
width: 100%;