A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-October/114279.html below:

[Python-Dev] [Python-checkins] cpython (2.7): Add a button to the code examples in the doc to show/hide the prompts and

[Python-Dev] [Python-checkins] cpython (2.7): Add a button to the code examples in the doc to show/hide the prompts and [Python-Dev] [Python-checkins] cpython (2.7): Add a button to the code examples in the doc to show/hide the prompts andÉric Araujo merwok at netwok.org
Mon Oct 31 18:19:15 CET 2011
Hi Ezio,

> http://hg.python.org/cpython/rev/18bbfed9aafa
> user:        Ezio Melotti <ezio.melotti at gmail.com>
> summary:
>   Add a button to the code examples in the doc to show/hide the prompts and output.

Looks cool!  I hope this will stop our use of two or three different
styles for Python code in the docs (doctest-compatible vs.
source-file-style vs. copy-paste-ready) and ultimately help make them
doctest-compatible.

> +$(document).ready(function() {
> +    /* Add a [>>>] button on the top-right corner of code samples to hide
> +     * the >>> and ... prompts and the output and thus make the code
> +     * copyable. */

I think it would be more user-friendly if the button/trigger would use
real English text like “Hide prompts”/“Show prompts” rather than symbols.

Cheers
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4