Code: Select all
a = 5 ; a must be set to 5
; in order for the program
; to work correctly.
b = 6
Code: Select all
a = 5 ; a must be set to 5
; in order for the program
; to work correctly.
b = 6
Code: Select all
a = 5 ; a must be set to 5
; in order for the program
; to work correctly.
b = 6
Code: Select all
a = 5 ; a must be set to 5
; in order for the program
; to work correctly.
b = 6
Code: Select all
If X
While Y
a = 5 ; a must be set to 5
; in order for the program
; to work correctly.
b = 6
Wend
EndIf
Code: Select all
If X
While Y
a = 5 ; a must be set to 5
; in order for the program
; to work correctly.
b = 6
Wend
EndIf
Code: Select all
If X
While Y
a = 5 ; a must be set to 5
; in order for the program
; to work correctly.
b = 6
Wend
; this is a normally spaced comment
EndIf
Code: Select all
If prefs->comment_alignment is true
If this line contains a semicolon
If the line above this line contains a semicolon
Move the comment portion of this line only such that the semicolons are aligned
EndIf
EndIf
EndIf
Code: Select all
If X
While Y
a = 5 ; a must be set to 5
; in order for the program
; to work correctly.
b = 6
Wend
EndIf
If X
While Y
a = 5 ;\ a must be set to 5
;\ in order for the program
;\ to work correctly.
b = 6
Wend
EndIf
Code: Select all
If X
While Y
a = 5 ; a must be set to 5
; in order for the program
; to work correctly.
b = 6
Wend
EndIf
If X
;\ we come to an important loop:
;\ a and be must b set while
;\ Y is true, otherwise chaos will ensue.
While Y
a = 5 ;\ a must be set to 5
;\ in order for the program
;\ to work correctly.
b = 6
Wend
EndIf
Code: Select all
If X
While Y
a = 5 ; a must be set to 5
; in order for the program
; to work correctly.
b = 6
Wend
EndIf
If X
;\ we come to an important loop:
;\ a and b must be set while
;\ Y is true, otherwise chaos will ensue.
While Y
a = 5 ;\ a must be set to 5
;\ in order for the program
;\ to work correctly.
b = 6
Wend
EndIf
Code: Select all
; a must be set to 5
; in order for the program
; to work correctly.
a = 5
b = 6
Code: Select all
If Truc = 0
Test + 1
EndIf
Code: Select all
If Truc = 0
; Test + 1
EndIf
Code: Select all
If Truc = 0
; Test + 1
EndIf
Code: Select all
If Truc = 0
Test + 1
If Test > 2
Toto = Test + 4
EndIf
EndIf
Code: Select all
If Truc = 0
; Test + 1
; If Test > 2
; Toto = Test + 4
; EndIf
EndIf
I would appreciate it if that would happen with normal comments which start just with a semi-colon. Is actually an additional special character required to make it work?netmaestro wrote:[...] implement a "special character" which, if found immediately following a semicolon, results in the comment portion of that line aligned with a similar pair found above it.
That's how I understood it, too. But why use an extra character in order to achieve that goal?I assumed that the extra character would force that comment to align with the comment on the line above.
Code: Select all
If X
While Y
a = 5 ; a must be set to 5
; in order for the program
; to work correctly.
b = 6
Wend
; this is a normally spaced comment
EndIf