Sorry formatting issue.
`--[[` and `]]` work for me but yours would as well because the `--` at the end 
would be inside of the brackets.

Not sure saying "hotkey" is "meaningless", aren't they all linked to only ONE 
commenting action on/off?
Anyways, I use the default hotkey which toggles commenting on/off.
Toggle Line Commentation = Ctrl+E

I found the `filetypes.lua` file which shows
```
# single comments, like # in this file
#comment_single=--
# multiline comments
#comment_open=--[[
#comment_close=--]]
```
So it is set for single / multiple lines but I do not know how the multiline 
comment is activated?
If cursor is in the line and I hit Ctrl+E it add `--` to the beginning
and if I select multiple lines and apply Ctrl+E it just adds `--` to the 
beginning of each line.

Are you were saying that if a "filetypes" file does contain a 
"#comment_single=" value, then this then overrides the "multiline" value?  Does 
appear to be true because I changed the following line (removed # and --)
#comment_single=--
to
comment_single=
and then it only uses the --[[ and --]] commenting.

Does anyone know if it is possible to use both?

Thank You



-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/3997#discussioncomment-10953256
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/repo-discussions/3997/comments/[email protected]>

Reply via email to