• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

17. Snippets and Libraries > 17.2. Using Snippets

Using Snippets

Snippets come in two varieties: those that are a simple block of code and those that wrap around the current selection in the document. For example, in the Text folder of the Snippets tab, you’ll find a snippet called Service Mark. Adding this snippet to a page instantly inserts the code <sup>sm</sup>, creating a superscript service mark (sm) symbol.

But on occasion, you may want to wrap code around something you’ve already typed. You may want to add an HTML comment to your page (a message that won’t appear in a Web browser, but that you can use for helpful notes to yourself or other Web designers). The “Comment, multi-line” snippet (in the Comments folder) can help you add such comments quickly. It wraps whatever you’ve selected with opening (<!--) and closing HTML comments (-->). Adding an HTML comment is as easy as typing the comment, selecting it, and then inserting this snippet.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint