Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

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( );

NOTE

In languages that does not support UTF-8 characters change the separator comment from to -.


#### Comment IV - [Download](https://github.com/karyfoundation/comment/releases) - [Run Online](https://www.karyfoundation.org/comment/)

Comments Reference

Other Resources

Clone this wiki locally