Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html><html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head>
- <style type="text/css">
- html,
- body {
- width: 100%;
- height: 100%;
- margin: 0;
- padding: 0;
- overflow: hidden;
- }
- </style>
- <meta charset="utf-8">
- <title></title>
- <script async="async" type="text/javascript" src="vs/editor/editor.main.js"></script><link rel="stylesheet" type="text/css" data-name="vs/editor/editor.main" href="vs/editor/editor.main.css"><script async="async" type="text/javascript" src="vs/editor/editor.main.nls.js"></script><style type="text/css" media="screen" class="monaco-colors">.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: #1e1e1e; }
- .monaco-editor, .monaco-editor .inputarea.ime-input { color: #d4d4d4; }
- .monaco-editor .margin { background-color: #1e1e1e; }
- .monaco-editor .rangeHighlight { background-color: rgba(255, 255, 255, 0.04); }
- .vs-whitespace { color: rgba(227, 228, 226, 0.16) !important; }
- .monaco-editor.vs .valueSetReplacement { outline: solid 2px #888888; }
- .monaco-editor .focused .selectionHighlight { background-color: rgba(173, 214, 255, 0.15); }
- .monaco-editor .selectionHighlight { background-color: rgba(173, 214, 255, 0.07); }
- .monaco-editor .wordHighlight { background-color: rgba(87, 87, 87, 0.72); }
- .monaco-editor .wordHighlightStrong { background-color: rgba(0, 73, 114, 0.72); }
- .monaco-editor .findOptionsWidget { background-color: #2d2d30; }
- .monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px #000000; }
- .monaco-editor .view-overlays .current-line { border: 2px solid #282828; }
- .monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid #282828; }
- .monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 #404040 inset; }
- .monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 #707070 inset; }
- .monaco-editor .line-numbers { color: #5a5a5a; }
- .monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: rgba(121, 121, 121, 0.2); }
- .monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: rgba(100, 100, 100, 0.35); }
- .monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: rgba(191, 191, 191, 0.2); }
- .monaco-editor .minimap-shadow-visible { box-shadow: #000000 -6px 0 6px -6px inset; }
- .monaco-editor .view-ruler { box-shadow: 1px 0 0 0 #5a5a5a inset; }
- .monaco-editor .scroll-decoration { box-shadow: #000000 0 6px 6px -6px inset; }
- .monaco-editor .focused .selected-text { background-color: #264f78; }
- .monaco-editor .selected-text { background-color: #3a3d41; }
- .monaco-editor .cursor { background-color: #aeafad; border-color: #aeafad; color: #515052; }
- .monaco-diff-editor .diff-review-line-number { color: #5a5a5a; }
- .monaco-diff-editor .diff-review-shadow { box-shadow: #000000 0 -6px 6px -6px inset; }
- .monaco-editor .squiggly-error { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23ea4646'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left; }
- .monaco-editor .squiggly-warning { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%234d9e4d'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left; }
- .monaco-editor .squiggly-info { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23008000'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left; }
- .monaco-editor .squiggly-hint { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%223%22%20width%3D%2212%22%3E%3Cg%20fill%3D%22rgba(238%2C%20238%2C%20238%2C%200.7)%22%3E%3Ccircle%20cx%3D%221%22%20cy%3D%221%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%225%22%20cy%3D%221%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%221%22%20r%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat bottom left; }
- .monaco-editor .line-insert, .monaco-editor .char-insert { background-color: rgba(155, 185, 85, 0.2); }
- .monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: rgba(155, 185, 85, 0.2); }
- .monaco-editor .inline-added-margin-view-zone { background-color: rgba(155, 185, 85, 0.2); }
- .monaco-editor .line-delete, .monaco-editor .char-delete { background-color: rgba(255, 0, 0, 0.2); }
- .monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: rgba(255, 0, 0, 0.2); }
- .monaco-editor .inline-deleted-margin-view-zone { background-color: rgba(255, 0, 0, 0.2); }
- .monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px #000000; }
- .monaco-editor .bracket-match { background-color: rgba(0, 100, 0, 0.1); }
- .monaco-editor .bracket-match { border: 1px solid #888888; }
- .monaco-editor .codelens-decoration { color: #999999; }
- .monaco-editor .codelens-decoration > a:hover { color: #4e94ce !important; }
- .monaco-editor .findMatch { background-color: rgba(234, 92, 0, 0.33); }
- .monaco-editor .currentFindMatch { background-color: #515c6a; }
- .monaco-editor .findScope { background-color: rgba(58, 61, 65, 0.4); }
- .monaco-editor .find-widget { background-color: #2d2d30; }
- .monaco-editor .find-widget { box-shadow: 0 2px 8px #000000; }
- .monaco-editor .find-widget.no-results .matchesCount { color: #f48771; }
- .monaco-editor .find-widget .monaco-sash { background-color: #454545; width: 3px !important; margin-left: -4px;}
- .monaco-editor .hoverHighlight { background-color: rgba(38, 79, 120, 0.25); }
- .monaco-editor .monaco-editor-hover { background-color: #2d2d30; }
- .monaco-editor .monaco-editor-hover { border: 1px solid #454545; }
- .monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid rgba(69, 69, 69, 0.5); }
- .monaco-editor .monaco-editor-hover a { color: #4080d0; }
- .monaco-editor .monaco-editor-hover code { background-color: rgba(10, 10, 10, 0.4); }
- .monaco-editor .detected-link-active { color: #4e94ce !important; }
- .monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: #007acc; }
- .monaco-editor .monaco-editor-overlaymessage .message { border: 1px solid #007acc; }
- .monaco-editor .monaco-editor-overlaymessage .message { background-color: #063b49; }
- .monaco-editor .parameter-hints-widget { border: 1px solid #454545; }
- .monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid rgba(69, 69, 69, 0.5); }
- .monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid rgba(69, 69, 69, 0.5); }
- .monaco-editor .parameter-hints-widget { background-color: #2d2d30; }
- .monaco-editor .parameter-hints-widget a { color: #4080d0; }
- .monaco-editor .parameter-hints-widget code { background-color: rgba(10, 10, 10, 0.4); }
- .monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: #0097fb; }
- .monaco-editor .suggest-widget { color: #d4d4d4; }
- .monaco-editor .suggest-widget a { color: #4080d0; }
- .monaco-editor .suggest-widget code { background-color: rgba(10, 10, 10, 0.4); }
- .monaco-editor .reference-zone-widget .ref-tree .referenceMatch { background-color: rgba(234, 92, 0, 0.3); }
- .monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: rgba(255, 143, 0, 0.6); }
- .monaco-editor .reference-zone-widget .ref-tree { background-color: #252526; }
- .monaco-editor .reference-zone-widget .ref-tree { color: #bbbbbb; }
- .monaco-editor .reference-zone-widget .ref-tree .reference-file { color: #ffffff; }
- .monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: rgba(51, 153, 255, 0.2); }
- .monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: #ffffff !important; }
- .monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input { background-color: #001f33;}
- .monaco-editor .reference-zone-widget .preview .monaco-editor .margin { background-color: #001f33;}
- .monaco-editor .goto-definition-link { color: #4e94ce !important; }
- .monaco-editor .accessibilityHelpWidget { background-color: #2d2d30; }
- .monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px #000000; }
- .monaco-editor .tokens-inspect-widget { border: 1px solid #454545; }
- .monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: #454545; }
- .monaco-editor .tokens-inspect-widget { background-color: #2d2d30; }
- .mtk1 { color: #d4d4d4; }
- .mtk2 { color: #1e1e1e; }
- .mtk3 { color: #cc6666; }
- .mtk4 { color: #9cdcfe; }
- .mtk5 { color: #ce9178; }
- .mtk6 { color: #b5cea8; }
- .mtk7 { color: #608b4e; }
- .mtk8 { color: #666666; }
- .mtk9 { color: #569cd6; }
- .mtk10 { color: #dcdcdc; }
- .mtk11 { color: #808080; }
- .mtk12 { color: #ffffff; }
- .mtk13 { color: #f44747; }
- .mtk14 { color: #ff6a00; }
- .mtk15 { color: #c586c0; }
- .mtk16 { color: #a79873; }
- .mtk17 { color: #dd6a6f; }
- .mtk18 { color: #ffc600; }
- .mtk19 { color: #5bb498; }
- .mtk20 { color: #909090; }
- .mtk21 { color: #778899; }
- .mtk22 { color: #ff00ff; }
- .mtk23 { color: #b46695; }
- .mtk24 { color: #ff8c3a; }
- .mtk25 { color: #ff0000; }
- .mtk26 { color: #4f76ac; }
- .mtk27 { color: #3dc9b0; }
- .mtk28 { color: #74b0df; }
- .mtk29 { color: #4864aa; }
- .mtki { font-style: italic; }
- .mtkb { font-weight: bold; }
- .mtku { text-decoration: underline; }</style><style type="text/css" media="screen"></style><script async="async" type="text/javascript" src="vs/basic-languages/lua/lua.js"></script></head>
- <body>
- <div id="container" style="width:100%;height:100%;" data-keybinding-context="1" data-mode-id="lua"><div class="monaco-editor vs-dark" data-uri="inmemory://model/1" style="width: 580px; height: 261px;"><div data-mprt="3" class="overflow-guard" style="width: 580px; height: 261px;"><div class="margin" role="presentation" aria-hidden="true" style="position: absolute; will-change: transform; top: 0px; height: 299px; width: 64px;"><div class="glyph-margin" style="left: 0px; width: 0px; height: 299px;"></div><div class="margin-view-zones" role="presentation" aria-hidden="true" style="position: absolute;"></div><div class="margin-view-overlays" role="presentation" aria-hidden="true" style="position: absolute; width: 64px; font-family: Consolas, "Courier New", monospace; font-weight: normal; font-size: 14px; line-height: 19px; letter-spacing: 0px; height: 299px;"><div style="position:absolute;top:0px;width:100%;height:19px;"><div class="current-line" style="width:64px; height:19px;"></div><div class="line-numbers" style="left:0px;width:38px;">1</div></div><div style="position:absolute;top:19px;width:100%;height:19px;"><div class="line-numbers" style="left:0px;width:38px;">2</div></div><div style="position:absolute;top:38px;width:100%;height:19px;"><div class="line-numbers" style="left:0px;width:38px;">3</div></div></div></div><div class="monaco-scrollable-element editor-scrollable vs-dark" role="presentation" data-mprt="5" style="position: absolute; overflow: hidden; left: 64px; width: 516px; height: 261px;"><div class="lines-content monaco-editor-background" style="position: absolute; overflow: hidden; width: 1e+06px; height: 1e+06px; will-change: transform; top: 0px; left: 0px;"><div class="view-overlays" role="presentation" aria-hidden="true" style="position: absolute; height: 0px; width: 516px;"><div style="position:absolute;top:0px;width:100%;height:19px;"><div class="current-line" style="width:516px; height:19px;"></div></div><div style="position:absolute;top:19px;width:100%;height:19px;"><div class="cigr" style="left:0px;height:19px;width:30.796875px"></div></div><div style="position:absolute;top:38px;width:100%;height:19px;"></div></div><div role="presentation" aria-hidden="true" class="view-rulers"></div><div class="view-zones" role="presentation" aria-hidden="true" style="position: absolute;"></div><div class="view-lines" role="presentation" aria-hidden="true" data-mprt="7" style="position: absolute; font-family: Consolas, "Courier New", monospace; font-weight: normal; font-size: 14px; line-height: 19px; letter-spacing: 0px; width: 516px; height: 299px;"><div style="top:0px;height:19px;" class="view-line"><span><span class="mtk8">--[[</span></span></div><div style="top:19px;height:19px;" class="view-line"><span><span class="mtk8"> Lua Script</span></span></div><div style="top:38px;height:19px;" class="view-line"><span><span class="mtk8">--]]</span></span></div></div><div data-mprt="1" class="contentWidgets" style="position: absolute; top: 0px;"><div class="lightbulb-glyph" title="Show Fixes (Ctrl+.)" widgetid="LightBulbWidget" style="position: absolute; visibility: hidden; max-width: 516px;"></div></div><div role="presentation" aria-hidden="true" class="cursors-layer cursor-line-style cursor-solid"><div class="cursor " style="height: 19px; top: 0px; left: 0px; font-family: Consolas, "Courier New", monospace; font-weight: normal; font-size: 14px; line-height: 19px; letter-spacing: 0px; display: block; visibility: hidden; width: 2px;"></div></div></div><div role="presentation" aria-hidden="true" class="invisible scrollbar horizontal" style="position: absolute; width: 502px; height: 10px; left: 0px; bottom: 0px;"><div class="slider" style="position: absolute; top: 0px; left: 0px; height: 10px; will-change: transform; width: 502px;"></div></div><canvas class="decorationsOverviewRuler" aria-hidden="true" width="14" height="239" style="position: absolute; will-change: transform; top: 11px; right: 0px; width: 14px; height: 239px;"></canvas><div role="presentation" aria-hidden="true" class="invisible scrollbar vertical" style="position: absolute; width: 14px; height: 261px; right: 0px; top: 0px;"><div class="arrow-background" style="position: absolute; width: 14px; height: 11px; top: 0px; left: 0px;"></div><div class="up-arrow" style="position: absolute; width: 11px; height: 11px; top: 0px; left: 1.5px;"></div><div class="arrow-background" style="position: absolute; width: 14px; height: 11px; left: 0px; bottom: 0px;"></div><div class="down-arrow" style="position: absolute; width: 11px; height: 11px; left: 1.5px; bottom: 0px;"></div><div class="slider" style="position: absolute; top: 11px; left: 0px; width: 14px; will-change: transform; height: 208px;"></div></div></div><div role="presentation" aria-hidden="true" style="width: 580px;"></div><textarea data-mprt="6" class="inputarea" wrap="off" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false" aria-label="Editor content;Press Alt+F1 for Accessibility Options." role="textbox" aria-multiline="true" aria-haspopup="false" aria-autocomplete="both" style="font-size: 1px; line-height: 19px; top: 0px; left: 64px; width: 1px; height: 1px;"></textarea><div style="position: absolute; top: 0px; left: 0px; width: 0px; height: 0px;"></div><div data-mprt="4" class="overlayWidgets" style="width: 580px;"><div class="accessibilityHelpWidget" role="dialog" aria-hidden="true" widgetid="editor.contrib.accessibilityHelpWidget" style="display: none; position: absolute;"><div role="document"></div></div></div><div data-mprt="8" class="minimap slider-mouseover" role="presentation" aria-hidden="true" style="position: absolute; left: 0px; width: 0px; height: 261px;"><div class="minimap-shadow-hidden" style="height: 261px;"></div><canvas width="1" height="261" style="position: absolute; left: 0px; width: 1px; height: 261px;"></canvas><div class="minimap-slider" style="position: absolute; will-change: transform; width: 0px;"><div class="minimap-slider-horizontal" style="position: absolute; width: 0px; height: 0px;"></div></div></div></div><div data-mprt="2" class="overflowingContentWidgets"><div class="monaco-editor rename-box" widgetid="__renameInputWidget" style="height: 19px; box-shadow: rgb(0, 0, 0) 0px 2px 8px; position: absolute; visibility: hidden; max-width: 580px;"><input class="rename-input" type="text" aria-label="Rename input. Type new name and press Enter to commit." style="font-family: Consolas, "Courier New", monospace; font-weight: normal; font-size: 14px; background-color: rgb(60, 60, 60); color: rgb(204, 204, 204); border-width: 0px; border-style: none;"></div></div><div class="context-view monaco-builder-hidden" aria-hidden="true"></div></div></div>
- <script src="vs/loader.js"></script>
- <script type="text/javascript">
- require.config({ paths: { 'vs': 'vs' } });
- // API
- var GetText;
- var SetText;
- var SetTheme;
- var SetScroll;
- var ShowErr;
- var Refresh;
- // Enablers
- var SwitchMinimap;
- var SwitchReadonly;
- var SwitchRenderWhitespace;
- var SwitchLinks;
- var SwitchLineHeight;
- var SwitchFontSize;
- var SwitchFolding;
- var SwitchAutoIndent;
- var SwitchFontFamily;
- var SwitchFontLigatures;
- var AddIntellisense;
- // Variables
- var editor;
- var Proposals = [];
- require(['vs/editor/editor.main'], function () {
- function getDependencyProposals() {
- return Proposals;
- }
- monaco.languages.registerCompletionItemProvider('lua', {
- provideCompletionItems: function(model, position) {
- return getDependencyProposals();
- }
- });
- monaco.editor.defineTheme('net-theme-light', {
- base: 'vs',
- inherit: true,
- rules: [
- { token: 'global', foreground: '000000' },
- { token: 'keyword', foreground: 'ff6a00' },
- { token: 'comment', foreground: '666666' },
- { token: 'number', foreground: 'ffc600' },
- { token: 'string', foreground: 'ff8c3a' },
- ]
- });
- monaco.editor.defineTheme('net-theme-dark', {
- base: 'vs-dark',
- inherit: true,
- rules: [
- { token: 'global', foreground: 'FFFFFF', fontStyle: "bold" },
- { token: 'keyword', foreground: 'ff6a00', fontStyle: "bold" },
- { token: 'comment', foreground: '666666' },
- { token: 'number', foreground: 'ffc600' },
- { token: 'string', foreground: 'ff8c3a' },
- ]
- });
- editor = monaco.editor.create(document.getElementById('container'), {
- value: [
- "--[[",
- " Lua Script",
- "--]]",
- ].join('\n'),
- language: 'lua',
- theme: "net-theme-light",
- folding: true,
- scrollbar: {
- verticalHasArrows: true,
- },
- dragAndDrop: true,
- links: false,
- minimap: {
- enabled: false,
- },
- showFoldingControls: "always",
- smoothScrolling: true,
- });
- window.onresize = function() {
- editor.layout();
- };
- GetText = function() {
- return editor.getValue();
- }
- SetText = function(x) {
- editor.setValue(x);
- }
- SetTheme = function(themeName) {
- if (themeName == "Dark") {
- monaco.editor.setTheme("net-theme-dark");
- }
- if (themeName == "Light") {
- monaco.editor.setTheme("net-theme-light");
- }
- }
- SwitchMinimap = function(flag) {
- editor.updateOptions({
- minimap: {
- enabled: flag,
- }
- });
- }
- SwitchReadonly = function(flag) {
- editor.updateOptions({
- readOnly: flag,
- });
- }
- SwitchRenderWhitespace = function(op) {
- editor.updateOptions({
- renderWhitespace: op,
- });
- }
- SwitchLinks = function(flag) {
- editor.updateOptions({
- links: flag,
- });
- }
- SwitchLineHeight = function(num) {
- editor.updateOptions({
- lineHeight: num,
- });
- }
- SwitchFontSize = function(num) {
- editor.updateOptions({
- fontSize: num,
- });
- }
- SwitchFolding = function(flag) {
- editor.updateOptions({
- folding: flag,
- });
- }
- SwitchAutoIndent = function(flag) {
- editor.updateOptions({
- autoIndent: flag,
- });
- }
- SwitchFontFamily = function(name) {
- editor.updateOptions({
- fontFamily: name,
- });
- }
- SwitchFontLigatures = function(flag) {
- editor.updateOptions({
- fontLigatures: flag,
- });
- }
- ShowErr = function(line, column, endline, endcolumn, errMessage) {
- editor.revealPositionInCenter({ lineNumber: line, column: column});
- editor.deltaDecorations([], [
- {
- range: new monaco.Range(line, column, endline, endcolumn),
- options: {
- inlineClassName: 'squiggly-error',
- hoverMessage: {
- value: errMessage,
- }
- },
- },
- ]);
- }
- AddIntellisense = function(l, k, d, i) {
- var t;
- switch(k)
- {
- case "Class":
- t = monaco.languages.CompletionItemKind.Class;
- break;
- case "Color":
- t = monaco.languages.CompletionItemKind.Color;
- break;
- case "Constructor":
- t = monaco.languages.CompletionItemKind.Constructor;
- break;
- case "Enum":
- t = monaco.languages.CompletionItemKind.Enum;
- break;
- case "Field":
- t = monaco.languages.CompletionItemKind.Field;
- break;
- case "File":
- t = monaco.languages.CompletionItemKind.File;
- break;
- case "Folder":
- t = monaco.languages.CompletionItemKind.Folder;
- break;
- case "Function":
- t = monaco.languages.CompletionItemKind.Function;
- break;
- case "Interface":
- t = monaco.languages.CompletionItemKind.Interface;
- break;
- case "Keyword":
- t = monaco.languages.CompletionItemKind.Keyword;
- break;
- case "Method":
- t = monaco.languages.CompletionItemKind.Method;
- break;
- case "Module":
- t = monaco.languages.CompletionItemKind.Module;
- break;
- case "Property":
- t = monaco.languages.CompletionItemKind.Property;
- break;
- case "Reference":
- t = monaco.languages.CompletionItemKind.Reference;
- break;
- case "Snippet":
- t = monaco.languages.CompletionItemKind.Snippet;
- break;
- case "Text":
- t = monaco.languages.CompletionItemKind.Text;
- break;
- case "Unit":
- t = monaco.languages.CompletionItemKind.Unit;
- break;
- case "Value":
- t = monaco.languages.CompletionItemKind.Value;
- break;
- case "Variable":
- t = monaco.languages.CompletionItemKind.Variable;
- break;
- }
- Proposals.push({
- label: l,
- kind: t,
- detail: d,
- insertText: i
- });
- }
- SetScroll = function(line) {
- editor.revealLineInCenter({ lineNumber: line});
- }
- Refresh = function() {
- var text = getText();
- setText("");
- editor.trigger('keyboard', 'type', {text: text});
- }
- });
- </script>
- <div class="monaco-aria-container"><div class="monaco-alert" role="alert" aria-atomic="true"></div><div class="monaco-status" role="status" aria-atomic="true"></div></div></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement