Thank you very much for pointing me to the `comment_use_indent` option!

I tried it, and for simple line comments it works indeed.
However, this behavior is not exactly what I am looking for.
[ Also, I am somewhat surprised that this is a per filetype option. ]

A common use case is the following.
A code block has several indented lines to be treated together,
but not so many that block comments would be the way to go,
and in such a case a block of line comments is also visually superior.

Now the problem occurs with one or more levels of indentation.
Here is some example code by setting `comment_use_indent=true`.

This is what I would like to achieve:
```
uncommented code

    # for i=1:n
    #     if x[i]==value
    #         hit = true
    #         break
    #     end
    # end
```
And this is what I get:
```
uncommented code

    # for i=1:n
        # if x[i]==value
            # hit = true
            # break
        # end
    # end
```

- Would you be so kind to consider this as a feature request?




-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/4235#issuecomment-2646621956
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/4235/[email protected]>

Reply via email to