Don't Mismatch Comments

HTML comments are formatted as , CFML comments are formatted as . The difference? The extra hyphen before and after the comment text. But what if you mismatched the comments (two hyphens on one side and three on the other)? You’ll not throw an error, but code will not function properly – and because all you are looking for is a single hyphen finding the error can be time-consuming and frustrating. Lesson: be careful to match those comments properly. (Applies to: ColdFusion All)

Leave a Reply