Bug #82866 Hard to use copied multi-line statements from the documentation
| Submitted: | 6 Sep 2016 5:41 | Modified: | 22 Sep 2016 17:08 |
|---|---|---|---|
| Reporter: | monty solomon | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
| Version: | 5.7, all | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[6 Sep 2016 5:41]
monty solomon
[6 Sep 2016 6:30]
MySQL Verification Team
Hello Monty, Thank you for the feedback! Thanks, Umesh
[12 Sep 2016 4:29]
monty solomon
The copied text also includes the leading "mysql> " prompt when using the copy to clipboard feature in the upper right corner of the examples (as opposed to selecting the text to copy and using copy).
For example,
mysql> SELECT * FROM performance_schema.setup_instruments
-> WHERE NAME LIKE '%memory%';
I suggest removing the "mysql> " prompts from the examples to make them useful when copying.
[22 Sep 2016 17:08]
Stefan Hinz
Posted by developer: Thanks for the suggestion, Monty! After quite some discussion in the Docs team, we decided we'll implement an easier way to copy from examples. Unfortunately, that's a manual process, and such will take time. There are lots of examples where having a prompt makes sense, or is even a prerequisite for understanding. So, nothing we could fix with a lazy regex or XPath. We also discussed splitting examples into programlisting and screen elements, but found that would be an improvement for the worse, at least from a readability standpoint.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.042 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.