diff --git a/README.md b/README.md index f7b52635..09117178 100644 --- a/README.md +++ b/README.md @@ -62,13 +62,13 @@ fn main() { ``` Install `cargo apk` for building, running and debugging your application: -```sh -cargo install cargo-apk +```console +$ cargo install cargo-apk ``` We can now directly execute our `Hello World` application on a real connected device or an emulator: -```sh -cargo apk run +```console +$ cargo apk run ``` ## Logging and stdout @@ -76,8 +76,8 @@ Stdout is redirected to the android log api when using `ndk-glue`. Any logger th stdout, like `println!`, should therefore work. Use can filter the output in logcat -``` -adb logcat RustStdoutStderr:D *:S +```console +$ adb logcat RustStdoutStderr:D *:S ``` ### Android logger diff --git a/cargo-apk/README.md b/cargo-apk/README.md index 0408eb0f..d38101db 100644 --- a/cargo-apk/README.md +++ b/cargo-apk/README.md @@ -5,13 +5,13 @@ Tool for creating Android packages. ## Installation From crates.io: -``` -cargo install cargo-apk +```console +$ cargo install cargo-apk ``` From source: -``` -cargo install --path . +```console +$ cargo install --path . ``` ## Commands diff --git a/ndk-examples/README.md b/ndk-examples/README.md index 7f649e5c..c4eec76b 100644 --- a/ndk-examples/README.md +++ b/ndk-examples/README.md @@ -5,22 +5,22 @@ Collection of examples showing different parts of the libraries. ## Examples In order to see logs of the sample apps execute in a console: -``` -adb logcat RustStdoutStderr:D '*:S' +```console +$ adb logcat RustStdoutStderr:D '*:S' ``` ### hello_world Prints `hello world` in the console -``` -cargo apk build --example hello_world +```console +$ cargo apk build --example hello_world ``` ### jni_audio Prints output audio devices in the console -``` -cargo apk run --example jni_audio +```console +$ cargo apk run --example jni_audio ```