Geertjan's Blog

  • November 22, 2005

Simplifying Web Development via Code Snippets

Geertjan Wielenga
Product Manager
So I've added some code snippets for two sets of tags that I use a lot while writing help files—the header at the top of the page and the 'See Also' section at the end. Both sets of tags are pretty standard, except that each contains links to various other files. So, in the tooltip I've indicated the things that need to be done in bold—by means of the TBD, as shown below:

When I double-click (or drag) the Header item above, the tags that you see in the tooltip are created. That's really great, because now I'll never need to type those tags again.

The tooltip that you see above is of the same kind as the ones I raved about exactly two months ago, in Tooltips Like Never Seen Before. They're defined in Bundle.properties files, referenced in the XML file that collects all the resources for a tag, which in turn is registered in the layer.xml file. Here's the definition of the above tooltip:

And this is the relevant method in my code snippet definition:

Finally, this is the result of dragging the new code snippet into the page:

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.