1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

syntax highlighting

This commit is contained in:
Igor Chubin
2018-07-23 23:09:05 +02:00
committed by GitHub
parent b72ac450a6
commit e37e97f75b
+2 -2
View File
@@ -124,7 +124,7 @@ If you don't like an answer for your queries, you can pick another one. For that
Cheat sheets are formatted as code of the queried programming language (at least we are trying our best to do so)
so they can be pasted into a program in this language directly. Text comments, if there are any, are formatted according to the language syntax.
```
```lua
$ curl cht.sh/lua/table+keys
-- lua: retrieve list of keys in a table
@@ -147,7 +147,7 @@ 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`:
```
```lua
$ curl cht.sh/lua/table+keys?Q
local keyset={}
local n=0