This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/doc/docs/terminal-sessions.rst
Matthäus G. Chajdas 64e8e05307 Rework URL information in lexers.
This commit adds a new url field to a lexer, which can be used to link
to the language website, instead of relying on having the link in either
languages.rst or the docstring of the lexer. Additionally, it changes the
languages.rst file to auto-generate the list of lexers from the actual
source code, using the provided URL.
2022-03-20 10:29:30 +01:00

46 lines
959 B
ReStructuredText

Interactive terminal/shell sessions
-----------------------------------
To highlight an interactive terminal or shell session, prefix your code snippet
with a specially formatted prompt.
Supported shells with examples are shown below. In each example, prompt parts in
brackets ``[any]`` represent optional parts of the prompt, and prompt parts
without brackets or in parenthesis ``(any)`` represent required parts of the
prompt.
* **Bash Session** (console, shell-session):
.. code-block:: console
[any@any]$ ls -lh
[any@any]# ls -lh
[any@any]% ls -lh
$ ls -lh
# ls -lh
% ls -lh
> ls -lh
* **MSDOS Session** (doscon):
.. code-block:: doscon
[any]> dir
> dir
More? dir
* **Tcsh Session** (tcshcon):
.. code-block:: tcshcon
(any)> ls -lh
? ls -lh
* **PowerShell Session** (ps1con):
.. code-block:: ps1con
PS[any]> Get-ChildItem
PS> Get-ChildItem
>> Get-ChildItem