mirror of
https://github.com/chubin/cheat.sh.git
synced 2025-01-06 04:16:04 +03:00
Merge pull request #163 from tsevans/readme-curl-syantx
Escape question marks in README.md curl examples
This commit is contained in:
commit
1a89a33573
16
README.md
16
README.md
@ -152,9 +152,9 @@ so they can be pasted into a program in this language directly. Text comments, i
|
||||
```
|
||||
|
||||
If you don't need text comments in the answer, you can eliminate them
|
||||
using a special option `?Q`:
|
||||
using a special option `\?Q`:
|
||||
```lua
|
||||
$ curl cht.sh/lua/table+keys?Q
|
||||
$ curl cht.sh/lua/table+keys\?Q
|
||||
local keyset={}
|
||||
local n=0
|
||||
|
||||
@ -164,15 +164,15 @@ using a special option `?Q`:
|
||||
end
|
||||
```
|
||||
|
||||
And if you don't need syntax highlighting, switch it off using `?T`.
|
||||
And if you don't need syntax highlighting, switch it off using `\?T`.
|
||||
You can combine the options together:
|
||||
|
||||
```
|
||||
curl cht.sh/go/reverse+a+list?Q
|
||||
curl cht.sh/python/random+list+elements?Q
|
||||
curl cht.sh/js/parse+json?Q
|
||||
curl cht.sh/lua/merge+tables?QT
|
||||
curl cht.sh/clojure/variadic+function?QT
|
||||
curl cht.sh/go/reverse+a+list\?Q
|
||||
curl cht.sh/python/random+list+elements\?Q
|
||||
curl cht.sh/js/parse+json\?Q
|
||||
curl cht.sh/lua/merge+tables\?QT
|
||||
curl cht.sh/clojure/variadic+function\?QT
|
||||
```
|
||||
|
||||
Full list of all options described below and in `/:help`.
|
||||
|
Loading…
Reference in New Issue
Block a user