diff --git a/README.md b/README.md index cf310e01a..3c107f0b8 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ The latest development version of mruby can be downloaded via the following URL: The trunk of the mruby source tree can be checked out with the following command: -``` +```console $ git clone https://github.com/mruby/mruby.git ``` @@ -45,7 +45,7 @@ We don't have a mailing list, but you can use [GitHub issues](https://github.com For the simplest case, type -``` +```console rake all test ``` @@ -57,13 +57,13 @@ There are two sets of documentation in mruby: the mruby API (generated by yard) To build both of them, simply go -``` +```console rake doc ``` You can also view them in your browser -``` +```console rake view_api rake view_capi ``` diff --git a/doc/guides/compile.md b/doc/guides/compile.md index 08dedbf9d..68fcef50b 100644 --- a/doc/guides/compile.md +++ b/doc/guides/compile.md @@ -527,7 +527,7 @@ After the build, you will get `libmruby.a`. You can link it to your application. For compiler options and library path, you can use `mruby-config` command for convenience. `mruby-config` command prints the configuration used for `libmruby.a`. -``` +```console $ mruby-config --help Usage: mruby-config [switches] switches: diff --git a/doc/guides/link.md b/doc/guides/link.md index 861f71365..491efc413 100644 --- a/doc/guides/link.md +++ b/doc/guides/link.md @@ -54,7 +54,7 @@ command with following options: - `--cc` compiler name - `--cflags` options passed to compiler -``` +```console $ mruby-config --cflags -std=gnu99 -g -O3 -Wall -DMRB_GC_FIXED_ARENA -I/home/matz/work/mruby/include -I/home/matz/work/mruby/build/host/include ``` @@ -71,7 +71,7 @@ To retrieve linker options, you can use `mruby-config` with following options: - `--ldflags-before-libs` options passed to linker before linked libraries - `--libs` linked libraries -``` +```console $ mruby-config --ldflags -L/home/matz/work/mruby/build/host/lib