data:text/html,<!doctype html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Monaco Editor</title><script src="https://unpkg.com/[email protected]/min/vs/loader.js"></script><script type="module">require.config({paths:{vs:"https://unpkg.com/[email protected]/min/vs"}});require(["vs/editor/editor.main"],function(){const i=monaco.editor.create(document.getElementById("editor"),{theme:"vs-dark"}),r=document.querySelector(".language-picker");monaco.languages.getLanguages().map(t=>t.id).sort().forEach(t=>{const o=document.createElement("option");o.textContent=t,t===i.getModel().getLanguageId()&&(o.selected=!0),r.append(o)}),r.addEventListener("change",t=>{monaco.editor.setModelLanguage(i.getModel(),t.target.value)}),window.onresize=()=>i.layout();const n=getComputedStyle(document.querySelector(".monaco-editor")),e=document.querySelector(".menu");e.style.background=n.getPropertyValue("--vscode-editor-background"),e.style.color=n.getPropertyValue("--vscode-editor-foreground"),e.style.borderBottom="1px solid"+n.getPropertyValue("--vscode-editor-lineHighlightBorder")});</script><style>body{margin:0;overflow:hidden}.menu{box-sizing:border-box;width:100%;height:auto;padding:0 5px}select{appearance:none;background-color:transparent;border:none;padding:0 1em 0 0;margin:0;width:100%;color:inherit;font-family:inherit;font-size:inherit;cursor:inherit;line-height:inherit;z-index:1;outline:0}</style></head><body><div class="menu"><select class="language-picker"></select></div><div id="editor" style="width:100%;height:100%;position:absolute;overflow:hidden"></div></body></html>
monaco-bookmark's Introduction
monaco-bookmark's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.