Skip to content

Instantly share code, notes, and snippets.

@henrikhaugboelle
Created May 28, 2018 20:32
Show Gist options
  • Save henrikhaugboelle/4bb36e8e8b353d04a3835489a494dafc to your computer and use it in GitHub Desktop.
Save henrikhaugboelle/4bb36e8e8b353d04a3835489a494dafc to your computer and use it in GitHub Desktop.
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.13.1/min/vs/loader.js"></script>
<script>
require.config({
paths: {
'vs': 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.13.1/min/vs'
}
});
window.MonacoEnvironment = {
getWorkerUrl: function (workerId, label) {
return '/monaco-editor-worker-loader-proxy.js';
}
};
require(["vs/editor/editor.main"], function () {})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment