Menu

HTML tags around selected text

2007-12-19
2012-11-13
  • Nobody/Anonymous

    Is there a possibility to put HTML tags around selected text?

    (Psp has a nice function to do this (clips), I hope Notepad++ has it as well?

     
    • Nobody/Anonymous

      thank you.
      Great solution!

       
    • fidvo

      fidvo - 2007-12-19

      Notepad++ doesn't have the functionality built in, but I figured out how to do it with a macro.

      This method has one drawback: it puts the text you had highlighted on the clipboard.  In most cases this shouldn't be an issue; it's just something to be aware of.

      The steps are:

      (Highlight some text - it doesn't matter what.)
      Macro -> Start Recording
      CTRL-X
      (Type in the beginning tag)
      CTRL-V
      (Type in the ending tag)
      Macro -> Stop Recording

      You can then save the macro and use it as often as needed.