Title: WP-ShkShell
Author: ShkSchneider
Published: <strong>27 ກຸມພາ 2012</strong>
Last modified: 18 ມີນາ 2012

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://s.w.org/plugins/geopattern-icon/wp-shkshell.svg)

# WP-ShkShell

 ໂດຍ [ShkSchneider](https://profiles.wordpress.org/shkschneider/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/wp-shkshell.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/wp-shkshell/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/wp-shkshell/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/wp-shkshell/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/wp-shkshell/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/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 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>
    ```

## ການຕິດຕັ້ງ

 1. Upload wp-shkshell.zip to your WordPress plugins directory, usually `wp-content/
    plugins/` and unzip the file. It will create a `wp-content/plugins/wp-shkshell/`
    directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Create a post/page that contains a code snippet following the proper usage syntax.

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“WP-ShkShell” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການ
ພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ ShkSchneider ](https://profiles.wordpress.org/shkschneider/)
 *   [ msimone ](https://profiles.wordpress.org/msimone/)

[ແປ “WP-ShkShell” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/wp-shkshell)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/wp-shkshell/), ກວດເບິ່ງ 
[ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/wp-shkshell/), ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/wp-shkshell/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/wp-shkshell/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 0.6.0

 * Added support for comments (^#)

#### 0.5.3

 * Extended variables names: [A-Z_]+ to [a-zA-Z0-9_]+

#### 0.5.2

 * Path fix (thx to James House). Was causing bad parsing without space before ‘;’

#### 0.5.1

 * Added sub-shell commands recognition
    So that in `VAR=$(cmd ...)`, `cmd` will
   be highlighted as a command

#### 0.5

 * Fixed 0.4.1 (backquotes)

#### 0.4.3

 * Fixed 0.4.2.5 (commands detection)

#### 0.4.2.5

 * Improved commands detection

#### 0.4.2

 * Removed conditions
 * Improved CSS and README

#### 0.4.1

 * Added support for backquotes

#### 0.4.0

 * Fixed path to CSS (was hard-coded and case-insensitive)

#### 0.3.8.5

 * Added support for special variables $* $@ etc.

#### 0.3.8

 * Added support for conditions []

#### 0.3.7.5

 * Fixed strings

#### 0.3.7

 * Added support for strings ” and “”

#### 0.3.6

 * Added support for variables $… and $(…)

#### 0.3.5

 * Added support for fullpath commands

#### 0.3.4

 * Added support for commands with –

#### 0.3.3

 * Added support for ; and commands with –

#### 0.3.2

 * Fixed && and ||

#### 0.3.1

 * Perfect multi-line support

#### 0.3

 * Tag pre lang=”shell”, with prompt

#### 0.2

 * Added multiline commands, pre class=””

#### 0.1

 * First release, pre id=””

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **0.6.0**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **14 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **10+**
 *  ເວີຊັນ WordPress ** 2.0 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **3.3.2**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/wp-shkshell/)
 * ແທັກ
 * [command](https://lo.wordpress.org/plugins/tags/command/)[console](https://lo.wordpress.org/plugins/tags/console/)
   [shell](https://lo.wordpress.org/plugins/tags/shell/)[terminal](https://lo.wordpress.org/plugins/tags/terminal/)
   [unix](https://lo.wordpress.org/plugins/tags/unix/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/wp-shkshell/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

[Your review](https://wordpress.org/support/plugin/wp-shkshell/reviews/#new-post)

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/wp-shkshell/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ ShkSchneider ](https://profiles.wordpress.org/shkschneider/)
 *   [ msimone ](https://profiles.wordpress.org/msimone/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/wp-shkshell/)

## ບໍລິຈາກ

ເຈົ້າຕ້ອງການສະໜັບສະໜູນການພັດທະນາຂອງປລັກອິນນີ້ບໍ່?

 [ ບໍລິຈາກໃຫ້ປລັກອິນນີ້ ](http://www.shkschneider.me)