This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Separator Comment
Pouya Kary edited this page Mar 5, 2016
·
2 revisions
Separator Comment is a tricky one. This comment is used when you have many lines of code following by each other and you want to group them in their tasks. Look at this example which actually is line 80...102 of Comment IV's UI.ts file:
// • • • • •
try {
FreeGlobalErrorStorage( );
HideTheKaryHorse( );
UpdateGlobalInputVariables( );
UpdateCommentChars( );
} catch ( err ) {
return 1;
}
// • • • • •
var commentString = GenerateComment( );
// • • • • •
if ( doneSuccessfully ) {
var result = document.createElement( 'pre' );
result.className = CommentBoxStyleClassName;
result.innerHTML = commentString;
AppendElementToMainView( result );
}
// • • • • •
FadeResultViews( );
In languages that does not support UTF-8 characters change the separator comment from •
to -
.
![](https://cloud.githubusercontent.com/assets/2157285/13235210/f59c2db2-d9d1-11e5-8d10-9540b1a175f2.png)