- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 33.3k
DOC: fix formatting of shell commands #131295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|  | @@ -42,20 +42,28 @@ Installing IDLE | |||||
|  | ||||||
| In some cases, IDLE might not be included in your Python installation. | ||||||
|  | ||||||
| * For Debian and Ubuntu users:: | ||||||
| * For Debian and Ubuntu users: | ||||||
|  | ||||||
| .. code-block:: shell | ||||||
|  | ||||||
| sudo apt update | ||||||
| sudo apt install idle | ||||||
|  | ||||||
| * For Fedora, RHEL, and CentOS users:: | ||||||
| * For Fedora, RHEL, and CentOS users: | ||||||
|  | ||||||
| .. code-block:: shell | ||||||
|  | ||||||
| sudo dnf install python3-idle | ||||||
|  | ||||||
| * For SUSE and OpenSUSE users:: | ||||||
| * For SUSE and OpenSUSE users: | ||||||
|  | ||||||
| .. code-block:: shell | ||||||
|  | ||||||
| sudo zypper in python3-idle | ||||||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As I said, this will still be highlighted as  
        Suggested change
       
 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what if we use shell-session lexer? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The shell-session lexer seems to work but if we put a prompt (say  @hugovk what do you recommend here? I think it's not the only place where we're probably mixing lexers but I think  it's better if we don't highlight  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's use  | ||||||
|  | ||||||
| * For Alpine Linux users:: | ||||||
| * For Alpine Linux users: | ||||||
|  | ||||||
| .. code-block:: shell | ||||||
|  | ||||||
| sudo apk add python3-idle | ||||||
|  | ||||||
|  | ||||||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we use
shellorbashin general? also are you interested in fixing the other places which use incorrect highlighting?