Skip to content

Use :samp: role #109634

Closed
Closed
@serhiy-storchaka

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

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