mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
2 lines
No EOL
1.4 KiB
JavaScript
2 lines
No EOL
1.4 KiB
JavaScript
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4523],{4523:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});const r='var jsCodeArr = [\n\t"// ------------------------------",\n\t"// ------------------------------",\n\t"function Person(age) {",\n\t"\tif (age) {",\n\t"\t\tthis.age = age;",\n\t"\t}",\n\t"}",\n\t"Person.prototype.getAge = function () {",\n\t"\treturn this.age;",\n\t"};",\n\t"",\n\t"",\n];\n\njsCodeArr = jsCodeArr.concat(jsCodeArr.slice(0));\njsCodeArr = jsCodeArr.concat(jsCodeArr.slice(0));\njsCodeArr = jsCodeArr.concat(jsCodeArr.slice(0));\n\njsCodeArr[49] +=\n\t"And this is some long line. And this is some long line. And this is some long line. And this is some long line. And this is some long line. ";\n\nvar editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue: jsCodeArr.join("\\n"),\n\tlanguage: "javascript",\n});\n\neditor.revealPositionInCenter({ lineNumber: 50, column: 120 });\n// Also see:\n// - editor.revealLine\n// - editor.revealLineInCenter\n// - editor.revealLineInCenterIfOutsideViewport\n// - editor.revealLines\n// - editor.revealLinesInCenter\n// - editor.revealLinesInCenterIfOutsideViewport\n// - editor.revealPosition\n// - editor.revealPositionInCenter\n// - editor.revealPositionInCenterIfOutsideViewport\n// - editor.revealRange\n// - editor.revealRangeInCenter\n// - editor.revealRangeInCenterIfOutsideViewport\n'}}]);
|
|
//# sourceMappingURL=4523.js.map
|