From 7c87a9a70758e58c5de05e18f71bd2c407715aee Mon Sep 17 00:00:00 2001 From: William Huba Date: Tue, 1 May 2018 11:04:49 -0400 Subject: [PATCH] Update syntax highlighting for examples in README. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a3547fd..4d578d1 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ GCloudex uses HTTPoison for the HTTP requests, Poison for JSON encoding/decoding 1. Add gcloudex to your list of dependencies in `mix.exs`: - ``` + ```elixir def deps do [{:gcloudex, git: "git@github.com:sashaafm/gcloudex.git"}] end @@ -25,7 +25,7 @@ GCloudex uses HTTPoison for the HTTP requests, Poison for JSON encoding/decoding 2. Ensure gcloudex is started before your application: - ``` + ```elixir def application do [applications: [:gcloudex]] end @@ -38,7 +38,7 @@ Put that file in your application's config folder and rename the file to Finally put inside the config file you want (like `dev.exs`) the following line: -``` +```elixir config :goth, json: "config/.json" |> Path.expand |> File.read! ``` @@ -47,19 +47,19 @@ That's all you need to use GCloudex. ## Usages Examples ### Cloud Storage: -``` +```elixir GCloudex.CloudStorage.Client.list_buckets # => {:ok, %HTTPoison.Response{body: ..., status_code: 200}} GCloudex.CloudStorage.CLient.put_object "bucket_name", "this_file.txt" # => {:ok, %HTTPoison.Response{body: ..., status_code: 200}} ``` ### Cloud SQL: -``` +```elixir GCloudex.CloudSQL.Client.list_databases "instance_name" # => {:ok, %HTTPoison.Response{body: ...,status_code: 200}} GCloudex.CloudSQL.Client-insert_databaes "instance_name", "db_name" # => {:ok, %HTTPoison.Response{body: ...,status_code: 200}} ``` ### Cloud Speech: -``` +```elixir body = """ { "audio": {