Insert comments in HTML code

Insert comments in HTML code

27
Basic UserBasic User
27

    Apr 21, 2006#1

    Hello,
    how is it possible in UE12 to mark selected html code as comments?
    e.g. "<-- my html comment -->"

    With a macro?

    Thanks, Carlos

    13
    Basic UserBasic User
    13

      Apr 21, 2006#2

      Hello Carlos,

      You can use a macro like this:

      Code: Select all

      InsertMode
      ColumnModeOff
      HexOff
      Clipboard 9
      Cut 
      "
      <!--"
      Paste 
      "-->
      "
      ClearClipboard
      Clipboard 0
      You can modify it to better suit your preferences regarding the placing of newlines.

      I was afraid of macros myself, but doing experiments with the "quick record" is a fast and easy way to learn to do fast and easy macros.
      Koko McCracken

      7
      NewbieNewbie
      7

        May 23, 2006#3

        I believe an even easier way is to add a toolbar button for this. Go into "Advanced", "Configuration", expand "Toolbars/Menus" and select "HTML Toolbar". Use the arrow button to move over to a user button and select it. Then in the box for that button enter:

        Code: Select all

        <!--|-->
        In the Tooltip box type: HTML Comment Out

        Then hit "Modify Actual HTML Toolbar" and add this button to your toolbar.

        This allows you to highlight HTML code and "comment it out" or hit this button and start typing comments.