OK. With the code example and the additional info, I think, I now have the correct definition for you.
You added "Line Comment Num = 2; " instead of replacing "Line Comment = ;". I didn't have made clear, that only the normal OR the numbered line comment specification can be used, but not both at same time.
This definition works for your example:
Code: Select all
/L10"AutoLISP" Block Comment On = ;| Block Comment Off = |; Line Comment Num = 2; Line Comment Preceding Chars = [~;|] Escape Char = \ String Chars = " Nocase File Extensions = LSP MNL
Please note the 2 spaces between
2; and
Line.
The regular expression does not find anything, because you have set
Unix style as default for regular expression and my regular expression is for
UltraEdit style. After reading the additional infos about usage of ';', you can forget it.
Some additional info from me for you:
;| is not interpreted as line comment but as begin of a block comment, because there is not a space after ';'.
|;code or
|; code is not interpreted as line comment but as end of a block comment, because there is a '|' before the ';'.
;;;To keep text and
;; normal indent are not interpreted as line comments, because there is always a ';' before the last ';' and always not a space after the first ';'.
But take always into consideration, that you have to write a space immediately after the ';', if you really want a line comment. For example
;line comment is not a line comment, but
; line comment is a line comment.
Hope this helps and anything is clear.