From 0679130c14c3286f467ec5ca4a11b5c89a3aa5ee Mon Sep 17 00:00:00 2001 From: Tobias Preuss Date: Fri, 10 Oct 2014 16:46:14 +0200 Subject: [PATCH] Enable syntax highlighting for Groovy snippets. --- README.md | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ecae945..3380712 100644 --- a/README.md +++ b/README.md @@ -22,19 +22,23 @@ Including in your project ------------------------- The library is pushed to Maven Central as a AAR, so you just need to add the following dependency to your `build.gradle`. - - dependencies { - compile 'com.github.manuelpeinado.fadingactionbar:fadingactionbar:3.1.2' - } + +```groovy +dependencies { + compile 'com.github.manuelpeinado.fadingactionbar:fadingactionbar:3.1.2' +} +``` If your project doesn't use the stock action bar, but one of the compatibility implementations, you would use the following: - dependencies { - // Use the following if your project uses ActionBarCompat - compile 'com.github.manuelpeinado.fadingactionbar:fadingactionbar-abc:3.1.2' - // Or the following if your project uses ActionBarSherlock - compile 'com.github.manuelpeinado.fadingactionbar:fadingactionbar-abs:3.1.2' - } +```groovy +dependencies { + // Use the following if your project uses ActionBarCompat + compile 'com.github.manuelpeinado.fadingactionbar:fadingactionbar-abc:3.1.2' + // Or the following if your project uses ActionBarSherlock + compile 'com.github.manuelpeinado.fadingactionbar:fadingactionbar-abs:3.1.2' +} +``` Usage