Menu

How to comment selected text (asp code)

2007-05-16
2012-11-13
  • Nobody/Anonymous

    I would like to be able to place a single quote character in front of alle selected lines.

    For example:
    ----------------------------------------
    commenting some stuff.
    and some more

    The I would select that line

    [commenting some stuff
    and some more]

    The I would like to be able to press a hotkey to have n++ replace this with

    'commenting some stuff
    'and some more
    ----------------------------------------

    I tried some things with the regular expression replacements. But n++ started to hang/crash.
    Does anyone have a solution for this?

     
    • Nobody/Anonymous

      sorry, didn't try the menu, which supports "block commenting".

      Still does anyone know how to do this using hotkeys?

       
      • Nobody/Anonymous

        recoard a macro:
        select your comment, record, cut (ctrl-x), type a ' and paste (ctrl+v). stop the macro and save it as you like with the wanted hotkey.

         
    • Nobody/Anonymous

      ok, it's done with CTRL+Q.
      thanks :)

       
MongoDB Logo MongoDB