WP-ShkShell

WP-ShkShell Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 2,281 downloads
WP-ShkShell Icon

Try plugin: WP-ShkShell

We'll create fresh WordPress site with WP-ShkShell installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About WP-ShkShell

WP-ShkShell provides a terminal-like box for embedding terminal commands within pages or posts. It also support multi-lines, multi-commands and has s …

0


0


0


0


0

updated: 12 years ago
since: 12 years ago
author: shk.schneider

Description

WP-ShkShell provides a terminal-like box for embedding terminal commands within pages or posts.
It also support multi-lines, multi-commands and has syntax hightlight.

The code is a modification of WP-Terminal (https://wordpress.org/extend/plugins/wp-terminal/).

Usage

Wrap terminal blocks with <pre lang="shell" prompt="$"> and </pre>.

Example 1: Default prompt

<pre lang="shell" prompt="$">
  ls -a
</pre>

Example 2: Customized prompt

<pre lang="shell" prompt="#">
  ls -a
</pre>

Example 3: Another customized prompt

<pre lang="shell" prompt="user@machine$">
  ls -a
</pre>

Example 4: Comments

<pre lang="shell" prompt="user@machine$">
  ls -a
  # will also list hidden files
</pre>

Example 5: Multiline commands

<pre lang="shell">
  ls
  <br>ls -a
</pre>

Example 6: Multiline lines, multiple commands

<pre lang="shell">
  ls
  file1 file2 file3
  <br>ls -A
  .file0 file1 file2 file3
</pre>