Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans: Apply HTML code on highlighted text

Tags:

ide

netbeans

Is it possible to apply HTML code on highlighted text like in Zend Studio 5?

For example:

enter image description here

like image 973
IMB Avatar asked Feb 23 '23 17:02

IMB


1 Answers

Open preferences -> Editor -> Macros (in version 6.9.1)

Open Tools > Options > Editor > Macros (in version 8.0.1)

Add a new macro called something like "html-bold", then hightlight it. Paste this in the Macro Code section:

cut-to-clipboard "<b>" paste-from-clipboard "</b>"

Set a shortcut if you want. I tried it with CTRL+B and it worked fine.

Note that it will replace the current contents of your clipboard with the text you selected.

To learn more about Netbeans macros, see What useful macros have you created in Netbeans?

like image 119
Kelvin Avatar answered Mar 16 '23 14:03

Kelvin