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
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:6.3.0
Keywords:
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:


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

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":

https://git.libreoffice.org/help/+/3c494b6e6db198099f4641aaef3f608842d53faa%5E%21

tdf#122548 copy bascode and pycode to clipboard