in website/index/index.js [29:72]
require(["vs/editor/editor.main"], function () {
editor = monaco.editor.create(document.getElementById("editor"), {
value: [
"/**",
" * Formats the given Javadoc comment, which must start with /** and end with */. The output will",
" * start and end with the same characters.",
" */",
"class Handler : RequestHandler<APIGatewayProxyRequestEvent, String> {",
" override fun handleRequest(event: APIGatewayProxyRequestEvent, context: Context?): String {",
" for ((i, item) in items.withIndex()) {",
" if (needDot) {",
" // fillMode is bla bla",
" val fillMode =",
" if (unconsumedPrefixes.isNotEmpty() && i <= unconsumedPrefixes.peekFirst()) {",
" prefixFillMode /* bla bla */",
" } else {",
" Doc.FillMode.UNIFIED",
" }",
' builder.breakOp(fillMode, "", ZERO, Optional.of(nameTag))',
" builder.token((item as KtQualifiedExpression).operationSign.value)",
" }",
" emitSelectorUpToParenthesis(item)",
" if (unconsumedPrefixes.isNotEmpty() && i == unconsumedPrefixes.peekFirst()) {",
" builder.close()",
" unconsumedPrefixes.removeFirst()",
" }",
" if (i == items.size - 1 && hasTrailingLambda) {",
" builder.close()",
" }",
" val argsIndent =",
" Indent.If.make(",
" nameTag,",
" expressionBreakIndent,",
" if (trailingDereferences) expressionBreakIndent else ZERO",
" )",
" }",
" }",
"}",
].join("\n"),
language: "kotlin",
rulers: [columnLimit],
scrollBeyondLastLine: false,
});
});