ExpressionEngine Docs

Commenting Your Templates

ExpressionEngine allows developers to comment their templates so that the comments will be available to them when editing their templates but never be shown when that template is displayed.

Note: ExpressionEngine comments must be stored directly in the template. When stored in any type of variable, the comments will be rendered directly to the screen.

The syntax for commenting is similar to HTML comments, but intead of the greater/lesser than symbols you use curly quote brackets:

{!--  Your comments will go in here.
You can even span it across multiple lines.  --}

Any ExpressionEngine code that you put in these comments will NOT be rendered, so you can comment out old code or perhaps reference tags for later:

{!--  Here is some descriptive text. Look below, an ExpressionEngine tag:

    {exp:channel:entries channel="recipies"}
        {title}
    {/exp:channel:entries}

 --}