@codemirror/comment
Advanced tools
Changelog
0.19.1 (2022-02-16)
The commenting commands now never do anything in a read-only editor.
Make toggleComment
use toggleBlockCommentPerLine
when no line comment syntax is available.
Add a toggleBlockCommentByLine
command, which toggles commenting/uncommenting of entire selected lines.
Changelog
0.18.1 (2021-05-10)
Toggling line comments will now add comments when a range with both commented and uncommented lines is selected (to allow toggling without changing anything).
Changelog
0.17.3 (2021-02-25)
Don't change lines that have the end of a range selection directly at their start when line commenting.
Changelog
0.17.2 (2021-02-18)
Don't insert multiple line comment markers when there are multiple selections on a line.
Move the cursor after the comment marker when inserting a line comment directly at the cursor.