diff --git a/README.md b/README.md
index 1120275..0567a2a 100644
--- a/README.md
+++ b/README.md
@@ -35,23 +35,24 @@ Hence why we created this simple component :)
In exactly the same way as the support library! Simply wrap an edit text field like so:
-
-
-
-
-
-
+```xml
+
+
+
+
+
+```
#Setting attributes via XML
@@ -62,8 +63,10 @@ In our XML layout, we can set two extra attributes for the BufferTextInputLayout
e.g
- app:displayFromCount="5"
- app:counterMode="descending"
+```xml
+app:displayFromCount="5"
+app:counterMode="descending"
+```
#Setting attributes programmatically
@@ -72,6 +75,7 @@ e.g
- setCharactersRemainingUntilCounterDisplay(int remainingCharacters) -> Set the value for which how many characters should be remaining until the counter becomes visible
e.g.
-
- bufferTextInputLayout.setCounterMode(CounterMode.DESCENDING);
- bufferTextInputLayout.setCharactersRemainingUntilCounterDisplay(40);
+```java
+bufferTextInputLayout.setCounterMode(CounterMode.DESCENDING);
+bufferTextInputLayout.setCharactersRemainingUntilCounterDisplay(40);
+```