mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-08-13 06:24:46 -05:00
Add an example.
This commit is contained in:
@@ -257,7 +257,9 @@ in a different style:
|
||||
.. rst:role:: samp
|
||||
|
||||
A piece of literal text, such as code. Within the contents, you can use
|
||||
curly braces to indicate a "variable" part, as in ``:file:``.
|
||||
curly braces to indicate a "variable" part, as in :rst:dir:`file`. For
|
||||
example, in ``:samp:`print 1+{variable}```, the part ``variable`` would be
|
||||
emphasized.
|
||||
|
||||
If you don't need the "variable part" indication, use the standard
|
||||
````code```` instead.
|
||||
|
||||
Reference in New Issue
Block a user