It seems I'm in the mood of writing macros for jedit today. So I just wrote a macro to easily comment/ uncomment a selected code block. You can download the macro here.
How to install
- Download the file.
- Copy it to your .jedit/macros folder. You can also create a subfolder "Ruby" and place it there.
- Open jedit and select Macros / Rescan Macros.
- You should see a macro called "Block Comment" now.
How to use
- Write your ruby code in jedit as you normally do.
- Select a code block and execute the macro.
- The code block is now commented out.
- Select the same code block again and execute the macro.
- The code block is now uncommented again.
I hope you find this macro as useful as I do and enjoy using it.
PS: For better usability I recommend to make a shortcut for the macro (ex. CTRL-k).