plugin-icon

WP-ShkShell

제작자: ShkSchneider·
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.6.0
활성화된 설치 항목
10
최근 업데이트일
Mar 18, 2012

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>
무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 3.3.2
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.