From cf2c15181a877a3d18fff939ee215fc7a35fbe6c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 7 Jan 2016 22:47:02 +0100 Subject: [PATCH] API help: Explain how to create a paste via a pipe. --- htdocs/themes/bootstrap/views/api_help.php | 4 ++++ htdocs/themes/cleanwhite/views/api_help.php | 4 ++++ htdocs/themes/default/views/api_help.php | 4 ++++ htdocs/themes/geocities/views/api_help.php | 4 ++++ htdocs/themes/i386/views/api_help.php | 4 ++++ htdocs/themes/stikkedizr/views/api_help.php | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/htdocs/themes/bootstrap/views/api_help.php b/htdocs/themes/bootstrap/views/api_help.php index d2110fc..2109feb 100644 --- a/htdocs/themes/bootstrap/views/api_help.php +++ b/htdocs/themes/bootstrap/views/api_help.php @@ -74,6 +74,10 @@ curl -d lang=php --data-urlencode text@main.php

Create a paste with PHP syntax highlighting.

+

Create paste via a pipe

+ echo foo | curl --data-urlencode text@- +

Create a paste based on standard output of a command.

+

Get paste ;-)

curl

Display paste.

diff --git a/htdocs/themes/cleanwhite/views/api_help.php b/htdocs/themes/cleanwhite/views/api_help.php index a29fcaf..4806733 100644 --- a/htdocs/themes/cleanwhite/views/api_help.php +++ b/htdocs/themes/cleanwhite/views/api_help.php @@ -69,6 +69,10 @@ curl -d lang=php --data-urlencode text@main.php

Create a paste with PHP syntax highlighting.

+

Create paste via a pipe

+ echo foo | curl --data-urlencode text@- +

Create a paste based on standard output of a command.

+

Get paste ;-)

curl

Display paste.

diff --git a/htdocs/themes/default/views/api_help.php b/htdocs/themes/default/views/api_help.php index a29fcaf..4806733 100644 --- a/htdocs/themes/default/views/api_help.php +++ b/htdocs/themes/default/views/api_help.php @@ -69,6 +69,10 @@ curl -d lang=php --data-urlencode text@main.php

Create a paste with PHP syntax highlighting.

+

Create paste via a pipe

+ echo foo | curl --data-urlencode text@- +

Create a paste based on standard output of a command.

+

Get paste ;-)

curl

Display paste.

diff --git a/htdocs/themes/geocities/views/api_help.php b/htdocs/themes/geocities/views/api_help.php index d2110fc..2109feb 100644 --- a/htdocs/themes/geocities/views/api_help.php +++ b/htdocs/themes/geocities/views/api_help.php @@ -74,6 +74,10 @@ curl -d lang=php --data-urlencode text@main.php

Create a paste with PHP syntax highlighting.

+

Create paste via a pipe

+ echo foo | curl --data-urlencode text@- +

Create a paste based on standard output of a command.

+

Get paste ;-)

curl

Display paste.

diff --git a/htdocs/themes/i386/views/api_help.php b/htdocs/themes/i386/views/api_help.php index d2110fc..2109feb 100644 --- a/htdocs/themes/i386/views/api_help.php +++ b/htdocs/themes/i386/views/api_help.php @@ -74,6 +74,10 @@ curl -d lang=php --data-urlencode text@main.php

Create a paste with PHP syntax highlighting.

+

Create paste via a pipe

+ echo foo | curl --data-urlencode text@- +

Create a paste based on standard output of a command.

+

Get paste ;-)

curl

Display paste.

diff --git a/htdocs/themes/stikkedizr/views/api_help.php b/htdocs/themes/stikkedizr/views/api_help.php index acf823c..992c985 100644 --- a/htdocs/themes/stikkedizr/views/api_help.php +++ b/htdocs/themes/stikkedizr/views/api_help.php @@ -74,6 +74,10 @@ curl -d lang=php --data-urlencode text@main.php

Create a paste with PHP syntax highlighting.

+

Create paste via a pipe

+ echo foo | curl --data-urlencode text@- +

Create a paste based on standard output of a command.

+

Get paste ;-)

curl

Display paste.