diff --git a/README.md b/README.md
index 27614c0..1dc2e03 100644
--- a/README.md
+++ b/README.md
@@ -8,37 +8,39 @@ Android widget combination of ImageView, EditText and TextView based on Material
1. Add the dependency in your build.gradle
- compile 'com.gregacucnik:edittextview:1.6'
-
+```groovy
+compile 'com.gregacucnik:edittextview:1.6'
+```
2. Include EditTextView widget in your layout
-
- ```
-
+
+```xml
+
```
3. (Optional - if you want to exit EditMode when you click outside of EditTextView) Implement OnClickListener for EditTextView parent layout and requestFocus.
- ```
- final LinearLayout llContainer = (LinearLayout)findViewById(R.id.llContainer);
-
- llContainer.setClickable(true);
- llContainer.setFocusable(true);
-
- llContainer.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- llContainer.requestFocus();
- }
- });
+```java
+
+final LinearLayout llContainer = (LinearLayout)findViewById(R.id.llContainer);
+
+llContainer.setClickable(true);
+llContainer.setFocusable(true);
+
+llContainer.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ llContainer.requestFocus();
+ }
+});
```
4. (Optional) Implement `EditTextViewListener` to get callbacks for `onEditTextViewEditModeStart()` and `onEditTextViewEditModeFinish(String text)`.