Skip to content

Use :samp: role #109634

Description

@serhiy-storchaka

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13bugs and security fixesdocsDocumentation in the Doc dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions