OK. I've managed to work out a Javascript option that works
and am posting here for anyone's future reference. First off,
genererate a single cell table and format the text (code snippet )
as required. Next create a form containing a button and a
multi-line text field. In the <HEAD> section paste:
<script LANGUAGE=JavaScript
type="text/javascript">function copy2Clipboard(element)
{
element.select(); // Only works for text boxes.
textRange = document.selection.createRange();
textRange.execCommand("RemoveFormat");
textRange.execCommand("Copy");
}</script>
Change the button properties to Control Type = Plain Button,
Button Caption = Copy to Clipboard, Control Identifier –
Delete the default value to leave a blank field. Also add Add
onclick="copy2Clipboard(namehere)" to the end of your <input
type=submit value=Button> statement.
Change the multi-line text field properties to Control
Identifier = namehere (where namehere is the value you specified
above), Initial text = Paste the code snippet to be copied to the
PC clipboard. Also add style="height: 1px; width: 0px;" to the end
of the multi-line text area code.
Note: If the above style statement is set to style="height:
0px; width: 0px;"> a bug generates acres of blank space between
the end of the multi-line text box and any other following content.
If the multi-line text box is the last part of the topic content
this is OK but otherwise the code above must be used.