Take a look at the page linked below and note the area at the bottom of the page where it says: The URL in the text field below links to this page.
Perhaps you might find something similar to this to be useful in this case?
Here's the link:
Helpful and Handy Links
Thanks for your reply. That could possibly be useful. I like how it automatically selects the full line when you click in the box. How did you go about doing it?
In my situation, we want the operator to copy a very long string of SQL. We would like it display with linebreaks but when copied and pasted into a text editor, it needs to be a single line. So I'm wondering if your nifty box has the capability to hold and/or display very long strings.
Our output would be in WebHelp and would need to work in multiple browsers. So far, IE is the real sticking point. Have you tried your solution in WebHelp rather than CHM?
In the meantime, just letting you know, I have tried other solutions that aren't working:
- put the SQL command string in a single cell table - this still had the same problem and didn't wrap in IE
- insert <BR> tags - this didn't paste into Notepad as a single line, it broke it into multiple lines even with wordrap turned off
Rick should be safely tucked up in bed but I can help you along the way.
What you need is a text field. Rick has used a single line field, you can also use a multi line field. You will likely not get the to display all the content so you precede the field with text along the lines of "Click in the field below and press CTRL + C to copy the code to your clipboard."
The text being selected does not happen automatically. The code for the field will start something like...
... but without onFocus="select()" - you have to add that manually in the HTML view of your topic.
See www.grainge.org for RoboHelp and Authoring tips