Author Topic: Ask for a macro to add surround comment quickly  (Read 3428 times)

tigerterry

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Ask for a macro to add surround comment quickly
« on: December 20, 2011, 12:29:47 PM »
Hello, everyone!
My problem is like this.
Assuming that there are some line of code:
Code: [Select]
line_1
line_2

I want to add just two lines of comment surround the code like this:
Code: [Select]
[commet_str. YYMMDD. begin]
line_1
line_2
[commet_str. YYMMDD. end]

please help me.
Thanks.

Phil Barila

  • Senior Community Member
  • Posts: 745
  • Hero Points: 61
Re: Ask for a macro to add surround comment quickly
« Reply #1 on: December 20, 2011, 05:29:43 PM »
You can add your own templates to the Surround With aliases.  Open the Language options for your code, and go to the Aliases node in the Tree.  Add your alias, and check the "Surround With" checkbox for that alias.