Created attachment 148116 [details]
Suggested layout for Copy to clipBoard layout
Similar to bug#115255, a good enhancement is to let BASIC and PYTHON code fragment to be copied to the clipboard for further use in BASIC IDE or PYTHON editor.
The source Basic and Python code fragments are enclosed in <bascode>[<pycode>] tags that maps into <div>'s with class = "bascode[pycode]". The transformed contents of the code fragments are inside a HTML <pre> tag.
The transformation can generate, for example:
1) a div containing a button to copy to clipboard on top of
2) the actual div with the code fragment.
See attached drawing.
Moving to NEW
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":
tdf#122548 copy bascode and pycode to clipboard