Highlighting scheme editor - Comments

Comments are intended to allow important information to be entered in the code to help the programmer see how the program works. This is particularly important when reading code written by another person. However, even your own code - after a long time - can be a puzzle.

Spider allows you to highlight comments in your code. Comments are denoted by special characters or strings - in each language these are different characters, e.g. '//' and the pair '/*' and '*/' in PHP, '<!--' and '-->' in HTML, etc.

Enable comment coloring
Check this option if you wish to enable comment coloring.

  • Single line comments
    Check this option if you wish to enable coloring of single-line comments.

    Using the icons on the right-hand side of the window, you can add, delete and edit comment start marks. A different coloring style can be defined for each comment character.

    Such coloring applies from the start of the comment (inclusive) to the end of the line in which it is placed. For example, in PHP this is the string '//'. Any characters can occur in a comment.

  • Multi-line comments
    Check this option if you wish to enable coloring of multi-line comments.

    Using the icons on the right-hand side of the window, you can add, delete and edit comment start and end characters. A different coloring style can be defined for each comment character pair.

    Such coloring applies from the start mark to the end mark of the comment (inclusive). The number of lines of code included in the comment does not matter. For example, this could be pairs of strings '/*, and '*/' in PHP, or '<!--' and '-->' in HTML. Any characters can occur in the comment, except for the character (string) marking the end of the comment.

Related topics

To top