From 633b1f619939dae9089a45f208523d58d159a3f5 Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Fri, 30 Jun 2017 22:08:20 -0400 Subject: [PATCH] try to fix website syntax highlighting --- website/_config.yml | 3 ++- website/index.md | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/website/_config.yml b/website/_config.yml index a8349bc..7bc7965 100644 --- a/website/_config.yml +++ b/website/_config.yml @@ -1,4 +1,5 @@ name: Cap'n Proto for Java -markdown: rdiscount +markdown: kramdown +highlighter: rouge baseurl: /capnproto-java url: http://dwrensha.github.io/capnproto-java diff --git a/website/index.md b/website/index.md index ab42067..4bdbc5d 100644 --- a/website/index.md +++ b/website/index.md @@ -72,7 +72,7 @@ Running `sbt test` should run the test suite. We can define types in a schema like this: -``` +{% highlight capnp %} @0x9eb32e19f86ee174; using Java = import "/capnp/java.capnp"; $Java.package("org.capnproto.examples"); @@ -107,7 +107,7 @@ struct Person { struct AddressBook { people @0 :List(Person); } -``` +{% endhighlight %} Then, after running the schema compiler, we can then use those types from Java like this: