Skip to content
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

Use :samp: role #109634

Closed
serhiy-storchaka opened this issue Sep 21, 2023 · 0 comments
Closed

Use :samp: role #109634

serhiy-storchaka opened this issue Sep 21, 2023 · 0 comments
Labels
3.11 only security fixes 3.12 bugs and security fixes 3.13 bugs and security fixes docs Documentation in the Doc dir

Comments

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Sep 21, 2023

The :samp: role formats text as literal, but unlike to literal text formatting (``...``) it allows to emphasize variable parts. For example, in ``\xhh`` all letters are in the same font, but in :samp:`\x{hh}` the variable part hh is emphasized in italic.

It is the same as the :file: role, but without additional semantic.

Linked PRs

@serhiy-storchaka serhiy-storchaka added docs Documentation in the Doc dir 3.11 only security fixes 3.12 bugs and security fixes 3.13 bugs and security fixes labels Sep 21, 2023
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Sep 21, 2023
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Sep 21, 2023
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Sep 21, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 23, 2023
(cherry picked from commit 92af0cc)

Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Sep 23, 2023
(cherry picked from commit 92af0cc)

Co-authored-by: Serhiy Storchaka <[email protected]>
Yhg1s pushed a commit that referenced this issue Sep 24, 2023
gh-109634: Use :samp: role (GH-109635)
(cherry picked from commit 92af0cc)

Co-authored-by: Serhiy Storchaka <[email protected]>
csm10495 pushed a commit to csm10495/cpython that referenced this issue Sep 28, 2023
serhiy-storchaka added a commit that referenced this issue Sep 29, 2023
(cherry picked from commit 92af0cc)

Co-authored-by: Jacob Coffee <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 29, 2023
(cherry picked from commit e27adc6)

Co-authored-by: Jacob Coffee <[email protected]>
Yhg1s pushed a commit that referenced this issue Sep 29, 2023
gh-109634: Fix `:samp:` syntax (GH-110073)
(cherry picked from commit e27adc6)

Co-authored-by: Jacob Coffee <[email protected]>
Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes 3.12 bugs and security fixes 3.13 bugs and security fixes docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant