I usually use xaraya, that has this useful feature of showing, in the html comments, which file is displaying that particular output. something like

<!-- start modules/login.xt -->
all the html output
<!-- end modules/login.xt -->

is there anything similar for drupal? it will help me a lot to create templates....

Comments

Eglish’s picture

You can easily add comments into your themes. For example, in my own block.tpl.php, My first and last lines look as follows:

<!-- BEGIN <?php print $block->module ?> block -->
//display block code
<!-- END <?php print $block->module ?> block -->

this will produce:

<!-- BEGIN cart block -->
// ecommerce shopping cart block
<!-- END cart block -->
<!-- BEGIN user block -->
// user block
<!-- END user block -->