ProgerXP / Notepad2e

Word highlighting, simultaneous editing, split views, math evaluation, un/grep, comment reformatting, UAC elevation, complete regexps (PCRE), Lua lexers, DPI awareness and more (XP+)
Other
375 stars 52 forks source link

Line Comment to prefix all lines, even comments #410

Closed ProgerXP closed 2 years ago

ProgerXP commented 2 years ago

Currently, the Special > Line Comment (Toggle) command does not affect already prefixed lines (unless all lines are prefixed, then it works like un-comment). Remove this check.

function fn() {
  if (0) {
    // Foo.
    bar();

Result of Ctrl+Q on lines 2-4, before:

function fn() {
  //if (0) {
    // Foo.
  //  bar();

Desired:

function fn() {
  //if (0) {
  //  // Foo.
  //  bar();
cshnik commented 2 years ago

Fixed.