Commenting Lines and Blocks

The Eclipse PHP IDE enables you to select a line or a block of text and tag it as a comment.

Two types of comment code can be added / removed:

Line Comment

The Line Comment option ( CTRL+SLASH ) inserts the double forward-slash characters ( // ) to the line or lines selected as comments:

// Comment Text Line 1

// Comment Text Line 2

// Comment Text Line 3

Block Comment

The Block Comment option (CTRL+SHIFT+SLASH) inserts the beginning (/*) and ending (*/) coding in order to mark the selected line or lines as comments.

/* Comment Text Line 1

   Comment Text Line 2

   Comment Text Line 3

                                        */