What do you think about adding snippets like this: you edit a file, select a text, right click and select Add to palette. Then a dialog opens asking you into what category to add selected text. I hope you can and will do this. Please.
So, I talked to Libor (the guy who implemented the Component Palette for JSP files and HTML files) and he tried to leave a comment in response to Kovica's question, but the comment thing in this blog didn't work for him. So he sent me an e-mail with instructions for adding code snippets. It's not a perfect solution by any means, and it will be improved in future releases. But here's how you can do it, despite the lack of 'official' support for doing this.
Whenever you see a set of instructions that tells you to close the IDE, you know that you're about to do something unorthodox... So, here it is:
config/JSPPalette/[new category]/[clip definition file]
For example, here's the place where mine is found, within the category "Geertjan's category":
Unfortunately, the name, tooltip, and icons will remain unchanged, which means that they don't fit with the new tag content. On the other hand, using this round-about approach, you can very quickly add many new code snippets to the Component Palette. Just continue copying that XML file that was generated for you in the NetBeans user directory, and your Component Palette will quickly expand to include a variety of your favorite code snippets.