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

Chapter 21. ColdFusion > Code Snippets

Code Snippets

After we get the code we need onto the page, we sometimes find ourselves copying code from one page and pasting it onto another page. Rather than opening more pages than you need, you can take just the code you reuse and save it within Dreamweaver as a code snippet.

There are many ways to programmatically reuse code in the ColdFusion language, and I encourage you to look into them. Tags and features such as CFINCLUDE, User Defined Functions, ColdFusion Components, and Custom Tags are designed to minimize the amount of maintenance you might face by eliminating the need for the same code on many pages. Remember, write it once and use it many times.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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