The Visual LISP code formatter can split long comments into multiple comments when they extend past the right margin.
Note: The Visual LISP IDE is available on Windows only.
Comments are split when
- the Split Comments option is enabled in the Format Options dialog box,
- the comment extends past the right margin, and
- either the Format Edit Window or Format Selection tools are used.
For example, if the Right Text Margin setting is 60, and Single-Semicolon comment indentation is 40, the code formatter will split the comment as follows:
Before formatting
(if (/= s "Function canceled") (princ (strcat "\nError: " s)) ;single semicolon cmt )
After formatting
(if (/= s "Function canceled") (princ (strcat "\nError: " s)) ; single semicolon ; cmt )