Skip to content

Commit

Permalink
Merge pull request #1 from ravidsrk/patch-1
Browse files Browse the repository at this point in the history
Added code syntax highlighting to Readme
  • Loading branch information
Sakis Kaliakoudas committed Feb 28, 2016
2 parents 04c62ae + 6ff1b1a commit cf7e2e8
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ How to
======

To set the highlight areas you can add the following statements programmatically:

emphasisTextView.setText("SALAD");
emphasisTextView.setTextToHighlight("sa");
emphasisTextView.setHighlightColor("#ff3393b4");
emphasisTextView.setCaseInsensitive(true);
emphasisTextView.highlight();

```java
emphasisTextView.setText("SALAD");
emphasisTextView.setTextToHighlight("sa");
emphasisTextView.setHighlightColor("#ff3393b4");
emphasisTextView.setCaseInsensitive(true);
emphasisTextView.highlight();
```
Please check the sample project for some more working examples.

Add it to your project
Expand All @@ -27,20 +27,20 @@ Add it to your project
This library is hosted in [jcenter](https://bintray.com/bintray/jcenter)

For gradle, you can import it with:

dependencies {
compile 'com.athkalia.emphasis:emphasis:0.3'
}

```groovy
dependencies {
compile 'com.athkalia.emphasis:emphasis:0.3'
}
```
For maven, you can import it with:

<dependency>
<groupId>com.athkalia.emphasis</groupId>
<artifactId>emphasis</artifactId>
<type>aar</type>
<version>0.3</version>
</dependency>

```xml
<dependency>
<groupId>com.athkalia.emphasis</groupId>
<artifactId>emphasis</artifactId>
<type>aar</type>
<version>0.3</version>
</dependency>
```
Todos
-----
Feel free to open a pull request for anything that you want to see added.
Expand Down

0 comments on commit cf7e2e8

Please sign in to comment.