aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Dryomov <artur.dryomov@gmail.com>2019-12-28 02:20:15 +0300
committeralandonovan <adonovan@google.com>2019-12-27 18:20:15 -0500
commitcaa3e9aa50080802185728ab0d08875959c50f16 (patch)
treec65fd124766a8aa01e5eb3cdbcd1ed995ee36a2b
parent9fcb808a6221c80a0ffa643b0be37b7d86c1d6cd (diff)
downloadstarlark-go-caa3e9aa50080802185728ab0d08875959c50f16.tar.gz
Add syntax highlighting to the readme file (#255)
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index e26e623..047b8cb 100644
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@ $ go get -u go.starlark.net/cmd/starlark
Run the interpreter:
-```
+```console
$ cat coins.star
coins = {
'dime': 10,
@@ -75,7 +75,7 @@ By value: penny, nickel, dime, quarter
Interact with the read-eval-print loop (REPL):
-```
+```pycon
$ starlark
>>> def fibonacci(n):
... res = list(range(n))
@@ -92,7 +92,7 @@ When you have finished, type `Ctrl-D` to close the REPL's input stream.
Embed the interpreter in your Go program:
-```
+```go
import "go.starlark.net/starlark"
// Execute Starlark program in a file.