From 047c9040c881babb3527db25931a02e93d5b89fb Mon Sep 17 00:00:00 2001 From: at055612 <22818309+at055612@users.noreply.github.com> Date: Fri, 18 Feb 2022 19:25:33 +0000 Subject: [PATCH 1/7] Command Line: Add support for command termination chars Adds attribute line-termination-str --- plugins/command-line/index.html | 95 +++++++++++++++++-- plugins/command-line/prism-command-line.js | 48 ++++++---- .../command-line/prism-command-line.min.js | 2 +- 3 files changed, 122 insertions(+), 23 deletions(-) diff --git a/plugins/command-line/index.html b/plugins/command-line/index.html index c8cd9c44be..f7dd2c48e7 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: