{"id":17108,"date":"2012-02-27T14:52:24","date_gmt":"2012-02-27T14:52:24","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-shkshell\/"},"modified":"2012-03-18T16:58:13","modified_gmt":"2012-03-18T16:58:13","slug":"wp-shkshell","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/wp-shkshell\/","author":9065265,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.6.0","stable_tag":"trunk","tested":"3.3.2","requires":"2.0","requires_php":"","requires_plugins":"","header_name":"WP-ShkShell","header_author":"shk.schneider","header_description":"","assets_banners_color":"","last_updated":"2012-03-18 16:58:13","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.shkschneider.me","header_plugin_uri":"http:\/\/www.shkschneider.me\/blog\/1110\/wp-shell-my-first-public-wordpress-plugin","header_author_uri":"http:\/\/www.shkschneider.me","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2755,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[22679,3916,27357,66909,24901],"plugin_category":[],"plugin_contributors":[88509,90243],"plugin_business_model":[],"class_list":["post-17108","plugin","type-plugin","status-publish","hentry","plugin_tags-command","plugin_tags-console","plugin_tags-shell","plugin_tags-terminal","plugin_tags-unix","plugin_contributors-msimone","plugin_contributors-shkschneider","plugin_committers-shkschneider"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-shkshell.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WP-ShkShell provides a terminal-like box for embedding terminal commands within pages or posts.\nIt also support multi-lines, multi-commands and has syntax hightlight.<\/p>\n\n<p>The code is a modification of WP-Terminal (http:\/\/wordpress.org\/extend\/plugins\/wp-terminal\/).<\/p>\n\n<h3>Usage<\/h3>\n\n<p>Wrap terminal blocks with <code>&lt;pre lang=\"shell\" prompt=\"$\"&gt;<\/code> and <code>&lt;\/pre&gt;<\/code>.<\/p>\n\n<p><strong>Example 1: Default prompt<\/strong><\/p>\n\n<pre><code>&lt;pre lang=\"shell\" prompt=\"$\"&gt;\n  ls -a\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<p><strong>Example 2: Customized prompt<\/strong><\/p>\n\n<pre><code>&lt;pre lang=\"shell\" prompt=\"#\"&gt;\n  ls -a\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<p><strong>Example 3: Another customized prompt<\/strong><\/p>\n\n<pre><code>&lt;pre lang=\"shell\" prompt=\"user@machine$\"&gt;\n  ls -a\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<p><strong>Example 4: Comments<\/strong><\/p>\n\n<pre><code>&lt;pre lang=\"shell\" prompt=\"user@machine$\"&gt;\n  ls -a\n  # will also list hidden files\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<p><strong>Example 5: Multiline commands<\/strong><\/p>\n\n<pre><code>&lt;pre lang=\"shell\"&gt;\n  ls\n  &lt;br&gt;ls -a\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<p><strong>Example 6: Multiline lines, multiple commands<\/strong><\/p>\n\n<pre><code>&lt;pre lang=\"shell\"&gt;\n  ls\n  file1 file2 file3\n  &lt;br&gt;ls -A\n  .file0 file1 file2 file3\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload wp-shkshell.zip to your Wordpress plugins directory, usually <code>wp-content\/plugins\/<\/code> and unzip the file.  It will create a <code>wp-content\/plugins\/wp-shkshell\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Create a post\/page that contains a code snippet following the proper usage syntax.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.6.0<\/h4>\n\n<ul>\n<li>Added support for comments (^#)<\/li>\n<\/ul>\n\n<h4>0.5.3<\/h4>\n\n<ul>\n<li>Extended variables names: [A-Z_]+ to [a-zA-Z0-9_]+<\/li>\n<\/ul>\n\n<h4>0.5.2<\/h4>\n\n<ul>\n<li>Path fix (thx to James House). Was causing bad parsing without space before ';'<\/li>\n<\/ul>\n\n<h4>0.5.1<\/h4>\n\n<ul>\n<li>Added sub-shell commands recognition\nSo that in <code>VAR=$(cmd ...)<\/code>, <code>cmd<\/code> will be highlighted as a command<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Fixed 0.4.1 (backquotes)<\/li>\n<\/ul>\n\n<h4>0.4.3<\/h4>\n\n<ul>\n<li>Fixed 0.4.2.5 (commands detection)<\/li>\n<\/ul>\n\n<h4>0.4.2.5<\/h4>\n\n<ul>\n<li>Improved commands detection<\/li>\n<\/ul>\n\n<h4>0.4.2<\/h4>\n\n<ul>\n<li>Removed conditions<\/li>\n<li>Improved CSS and README<\/li>\n<\/ul>\n\n<h4>0.4.1<\/h4>\n\n<ul>\n<li>Added support for backquotes<\/li>\n<\/ul>\n\n<h4>0.4.0<\/h4>\n\n<ul>\n<li>Fixed path to CSS (was hard-coded and case-insensitive)<\/li>\n<\/ul>\n\n<h4>0.3.8.5<\/h4>\n\n<ul>\n<li>Added support for special variables $* $@ etc.<\/li>\n<\/ul>\n\n<h4>0.3.8<\/h4>\n\n<ul>\n<li>Added support for conditions []<\/li>\n<\/ul>\n\n<h4>0.3.7.5<\/h4>\n\n<ul>\n<li>Fixed strings<\/li>\n<\/ul>\n\n<h4>0.3.7<\/h4>\n\n<ul>\n<li>Added support for strings '' and \"\"<\/li>\n<\/ul>\n\n<h4>0.3.6<\/h4>\n\n<ul>\n<li>Added support for variables $... and $(...)<\/li>\n<\/ul>\n\n<h4>0.3.5<\/h4>\n\n<ul>\n<li>Added support for fullpath commands<\/li>\n<\/ul>\n\n<h4>0.3.4<\/h4>\n\n<ul>\n<li>Added support for commands with -<\/li>\n<\/ul>\n\n<h4>0.3.3<\/h4>\n\n<ul>\n<li>Added support for ; and commands with -<\/li>\n<\/ul>\n\n<h4>0.3.2<\/h4>\n\n<ul>\n<li>Fixed &amp;&amp; and ||<\/li>\n<\/ul>\n\n<h4>0.3.1<\/h4>\n\n<ul>\n<li>Perfect multi-line support<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Tag pre lang=\"shell\", with prompt<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Added multiline commands, pre class=\"\"<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>First release, pre id=\"\"<\/li>\n<\/ul>","raw_excerpt":"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 &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/17108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=17108"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shkschneider"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=17108"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=17108"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=17108"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=17108"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=17108"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=17108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}