Gfa_CommentBlock, Gfa_UnCommentBlock Commands

Syntax

Gfa_CommentBlock

Gfa_UnCommentBlock

Description

Gfa_CommentBlock comments of a block of selected lines with the ° comment mark to differentiate the comments from a normal commented line. After commenting the line indention is removed.

Gfa_UnCommentBlock removes °comments of a block of selected lines. Only lines starting with °comments are affected, other lines are not processed. The IDE does not define keyboard shortcuts.

Example

// Define keyboard shortcuts for block commenting

 

Sub Gfa_Ex_C    // Shift+Ctrl+C - CommentBlock

If GfaLine <> Gfa_SelLine

Gfa_CommentBlock

EndIf

EndSub

 

Sub Gfa_Ex_U    // Shift+Ctrl+U - UnCommentBlock

Gfa_UncommentBlock

EndSub

See Also

Gfa_SelLine

{Created by Sjouke Hamstra; Last updated: 07/10/2014 by James Gaite}