mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-05 18:57:54 +08:00
d9c8d8d4e2
* push * push * push * Adressed comments and adjusted a thing * Added xslt * push * push. Ready to review * Spellcheck adjustments * Add installer stuff * Changed reg and removed xsl Co-authored-by: htcfreek <61519853+htcfreek@users.noreply.github.com> * Fixed tab * Updated monaco_languages.json Co-authored-by: Stefan Markovic <stefan@janeasystems.com> Co-authored-by: htcfreek <61519853+htcfreek@users.noreply.github.com>
32 lines
1.0 KiB
HTML
32 lines
1.0 KiB
HTML
<!doctype Html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Monaco Preview Handler monaco_languages.json generator</title>
|
|
<script src="monacoSRC/min/vs/loader.js"></script>
|
|
<script src="monacoSpecialLanguages.js" type="module"></script>
|
|
<script type="module">
|
|
import {registerAdditionalLanguages} from "./monacoSpecialLanguages.js"
|
|
function download(filename, text) {
|
|
var element = document.createElement('a');
|
|
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
|
|
element.setAttribute('download', filename);
|
|
|
|
element.style.display = 'none';
|
|
document.body.appendChild(element);
|
|
|
|
element.click();
|
|
|
|
document.body.removeChild(element);
|
|
}
|
|
require.config({ paths: { vs: 'monacoSRC/min/vs' } });
|
|
require(['vs/editor/editor.main'], async function () {
|
|
await registerAdditionalLanguages(monaco);
|
|
download("monaco_languages.json", "{\"list\":"+ JSON.stringify(monaco.languages.getLanguages())+"}");
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="container"></div>
|
|
</body>
|
|
</html> |