@jsvision/code-editor / toggleLineComments
Function: toggleLineComments()
toggleLineComments(
text,lines,comments?):string
Defined in: code-editor/src/languages/editing.ts:29
Adds or removes the active adapter's line-comment delimiter.
Parameters
text
string
lines
readonly number[]
comments?
Returns
string
Example
ts
`toggleLineComments('value', [0], { line: '//' })`