2 Replies Latest reply on Feb 26, 2007 6:32 AM by Peter Grainge

    Extra paragraph markers in copied text

    deckhogan
      Many of our WebHelp topics contain code that users can copy and paste into a text editor. However, we've noticed with the move from Winhelp to WebHelp that extra paragraph markers are being added between lines of code when the code is copied. This is not a big deal when users are copying a couple lines of code, but it is a huge problem when users are copying large amounts of code.

      Is there any way to eliminate these extra paragraph markers when text is copied?
        • 1. Re: Extra paragraph markers in copied text
          Peter Grainge Adobe Community Professional (Moderator)
          Try a multi line text field.

          Insert | Form Element | Multi Line Text Field.

          You can also tweak that so that when the user clicks in the text field, the text is automatically copied to the clipboard. I don't have the code to hand but post back if you want that.

          This way the text is completely unformatted and ready to go. You don't have to display all the text if you don't want to. Using the tweak or Ctrl + A, all the text in the field is copied even though it is not displayed. Can make things neater.

          • 2. Re: Extra paragraph markers in copied text
            Peter Grainge Adobe Community Professional (Moderator)
            I do have the code.

            The beginning of the text field code will start something like

            <textarea name="textarea"

            Add with just a space after "textarea"

            onFocus="select()"