Bug 122548 - [NEWHELP] Add a way to copy BASIC and PYTHON samples to clipboard
Summary: [NEWHELP] Add a way to copy BASIC and PYTHON samples to clipboard
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
(earliest affected)
Hardware: All All
: medium enhancement
Assignee: Not Assigned
Whiteboard: target:6.3.0
Depends on:
Blocks: New-Help
  Show dependency treegraph
Reported: 2019-01-07 20:15 UTC by Olivier Hallot
Modified: 2019-04-26 18:51 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Suggested layout for Copy to clipBoard layout (12.08 KB, application/vnd.oasis.opendocument.graphics)
2019-01-07 20:15 UTC, Olivier Hallot

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2019-01-07 20:15:24 UTC
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.
Comment 1 Xisco Faulí 2019-01-07 23:02:10 UTC
Moving to NEW
Comment 2 Commit Notification 2019-04-26 18:46:55 UTC
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":


tdf#122548 copy bascode and pycode to clipboard