From c4cc07679c37676f99279ac35c97fe0068a1d039 Mon Sep 17 00:00:00 2001 From: Tobias Preuss Date: Mon, 7 Mar 2016 17:57:26 +0100 Subject: [PATCH] Enable syntax highlighting for code snippets. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc1f2e6..92507dc 100644 --- a/README.md +++ b/README.md @@ -334,7 +334,7 @@ public @interface HexColor { Next apply this `@HexColor` annotation to the appropriate field: -``` +```java class Rectangle { int width; int height; @@ -344,7 +344,7 @@ class Rectangle { And finally define a type adapter to handle it: -``` +```java /** Converts strings like #ff0000 to the corresponding color ints. */ class ColorAdapter { @ToJson String toJson(@HexColor int rgb) {