[Gambas-user] A little extension for Gambaseditor

Benoit Minisini gambas at ...1...
Sun Jun 20 03:08:22 CEST 2004


On Saturday 19 June 2004 23:26, Peter wrote:
> Hi Benoit and all,
>
> I have a suggestion for a little extension for the editor in GAMBAS-IDE:
> Block-Indent and  release, like Block-Comment and UnComment.
> This simplifies changes in depth of blocks.
> Implementation:
>
> Into Class FEditor:
> -------------------
> Rename PUBLIC SUB mnuComment_Click() in
> PUBLIC SUB CommentIndent(sString AS String)
> substitute string "' " with variable sString
>
> Rename PUBLIC SUB mnuUncomment_Click() in
> PUBLIC SUB UnCommentIndent(sString AS String)
> substitute string "' " with variable sString
>
> New:
>
> PUBLIC SUB mnuComment_Click()
> 	CommentIndent("' ")
> END
>
> PUBLIC SUB mnuUncomment_Click()
> 	UnCommentIndent("' ")
> END
>
> PUBLIC SUB mnuIndent_Click()
> 	CommentIndent("  ")
> END
>
> PUBLIC SUB mnuUnIndent_Click()
> 	UnCommentIndent("  ")
> END
>
> Into Form FEditor:
> In panToolbar 2 TollButton with Group mnuIndent respectivly mnuUnindent
> and into Menu Indent and Unindent with the same name as above.
>
> Propositions for icons as attachments.
>
> I have testing under 0.92 and 0.93b
>
> Benoit, what do you make of it?
>
> Regards
> Peter

But this function already exists! Just select some lines and press TAB or 
SHIFT-TAB, and the block will be indented or unindented.

Of course, I can add your little icons in the editor toolbar.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list