I am using Netbeans 6.8 and trying to create a custom PHP comment code block macro with the /* */ style and not the usual double slash.
So far with googling and asking in PHPUGPH, I got this macro code (tools->options->editor->macros):
copy-to-clipboard delete-previous "/*" paste-from-clipboard "*/"
You must first highlight the code and press the shortcut key combination to make a comment block.
My problem now is I don't know the macro code to uncomment a PHP block. I found some code but I can't make it work.
I know this is old (a little over a year), but I found this while looking for useful macros for netbeans and noticed it was still unanswered. I've figured out a solution if you're still interested. I know I'll be using it from now on, thanks for the idea :)
selection-forward
selection-forward
copy-to-clipboard
remove-line
paste-from-clipboard
delete-previous
delete-previous
insert-break
Edit: BTW, I'm using 7.0.1, but I believe this should still work in 6.8
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With