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?
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.