The Visual LISP text editor supports five comment styles.
The following table lists each of the supported comment styles.
Comment Styles |
|
---|---|
Comment formatting |
Formatted appearance |
;| Inline |; |
The single-line comment appears after formatting as any other expression; the multiple-line comment appears starting at a new line |
; Single-Semicolon |
Starts at the comment-column position, as defined by the “Single-Semicolon comment indentation” format option |
;; Current-Column |
The comment appears starting on a new line, indented at the same level as the last line of program code |
;;; Heading or 0-Column |
Appears on a new line, without indentation |
;_ Function-Closing |
Appears just after the previous expression |
The following example code demonstrates each comment style.
(defun foo (x) ;|inline comment |; (list 1 2 3) ;comment-column comment ;;current-column comment ;;; heading or 0-column comment ) ;_ function-closing comment
(defun foo (x) ;|inline comment |; (list 1 2 3) ;comment-column comment ;;current-column comment ;;; heading or 0-column comment ) ;_ function-closing comment