Page 1 of 1

Is there "Insert comment" and "Remove comment

Posted: Tue Mar 23, 2010 3:46 pm
by dscharkss
In many editors, one can highlight many lines of text and with one button press, the entire section is commented out/commented in. I don't seem to find something in Zeus that will do that? Is there something? If so, how do I set that up so I can use it with the char I set for the comment line value?

If so, does Zeus allow the user to create new buttons for the toolbar and to assign a command or macro to them?

Thank you.

Posted: Tue Mar 23, 2010 9:31 pm
by jussij
In many editors, one can highlight many lines of text and with one button press, the entire section is commented out/commented in.

In the Macros menu there is are the Add Line Comment and Remove Line Commen menus that do exactly what you describe.
If so, how do I set that up so I can use it with the char I set for the comment line value?
The values used for the comments are defined in the commentText.lua file found in the zScript folder.
If so, does Zeus allow the user to create new buttons for the toolbar and to assign a command or macro to them?

It is possible to a a macro to the toolbar (search the forum for toolbar) but it is not as easy as adding a macro to the menu, popup menu or to a key combination.

Cheers Jussi