micro/runtime/plugins
Dmitry Maluka f1801f1958
Comment plugin: improve commenting multi-line selection (#2668)
When commenting a block of multiple lines, the comment symbol is added
right before the first non-whitespace character in each line, e.g.:

void somefunc(int a)
{
    // if (a) {
        // a += 2;
        // printf("a = %d\n", a);
    // } else {
        // printf("none");
    // }
}

which isn't quite nice.

Change it to add the comment at the same position on each line, which is
the position of the leftmost non-whitespace in the entire block, e.g.:

void somefunc(int a)
{
    // if (a) {
    //     a += 2;
    //     printf("a = %d\n", a);
    // } else {
    //     printf("none");
    // }
}

Ref #2282
2023-01-11 21:54:59 -08:00
..
autoclose Expose CharacterCount to plugins 2020-05-20 18:04:00 -04:00
comment Comment plugin: improve commenting multi-line selection (#2668) 2023-01-11 21:54:59 -08:00
diff Don't block when redraw channel becomes full 2020-02-11 20:03:32 -05:00
ftoptions Add plugin manager 2020-02-01 23:54:38 -05:00
linter Fix linter help formatting (#2280) 2021-11-17 12:59:16 -08:00
literate Add plugin manager 2020-02-01 23:54:38 -05:00
status Add more functions to customize status bar 2020-06-24 17:19:42 -04:00