From b53832cd1c4e1dcc106cf3b46258bcc5c063e98e Mon Sep 17 00:00:00 2001 From: at055612 <22818309+at055612@users.noreply.github.com> Date: Wed, 23 Feb 2022 11:30:35 +0000 Subject: [PATCH] Command Line: Add support for command continuation prefix (#3344) --- plugins/command-line/index.html | 98 +++++++++++++++++-- plugins/command-line/prism-command-line.js | 41 +++++--- .../command-line/prism-command-line.min.js | 2 +- 3 files changed, 119 insertions(+), 22 deletions(-) diff --git a/plugins/command-line/index.html b/plugins/command-line/index.html index c8cd9c44be..2aa0fed7e7 100644 --- a/plugins/command-line/index.html +++ b/plugins/command-line/index.html @@ -25,7 +25,8 @@

How to use

Add class command-line to your <pre>. For a server command line, specify the user and host names using the data-user and data-host attributes. The resulting prompt displays a # for the root user and $ for all other users. For any other command line, such as a Windows prompt, you may specify the entire prompt using the data-prompt attribute.

-

Optional: You may specify the lines to be presented as output (no prompt and no highlighting) through the data-output attribute on the <pre> element in the following simple format:

+

Optional: Command output (positional)

+

You may specify the lines to be presented as output (no prompt and no highlighting) through the data-output attribute on the <pre> element in the following simple format: