Skip to content

Commit 30138e9

Browse files
authored
Update README.md
1 parent 411c933 commit 30138e9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ If you want to use code classifier to auto language recognizing just add to your
3838
CodeProcessor.init(this);
3939
```
4040

41-
Having done ones on app start you can classify language for different snippets more faster, because algorithm needs time for training on sets for presented listings of languages library have.
41+
Having done ones on app start you can classify language for different snippets more faster, because algorithm needs time for training on sets for presented listings of languages which library has.
4242

4343
Add view to your layout & bind as usual:
4444
```xml
@@ -81,8 +81,10 @@ final CustomAdapter myAdapter = new CustomAdapter(this, getString(R.string.listi
8181
codeView.setAdapter(myAdapter);
8282
```
8383

84+
<b>Note:</b> Each <b>CodeView</b> has adapter and each adapter has options. When calling ```setOptions(...)``` or ```setAdapter(...)``` current adapter "flushed" with current options. If you want to save the state and just update options saving adapter or set adapter saving options you must call ```updateOptions(...)``` or ```updateAdapter(...)``` accordingly.
85+
8486
### Options
85-
Options helps to easily set necessary params, such as code & language, color theme, shortcut params & code line click listener. Some params are unnecessary.
87+
Options helps to easily set necessary params, such as code & language, color theme, shortcut params (max lines, note), code line click listener. Some params are unnecessary.
8688

8789
When view initialized (options or adapter are set) you can manipulate options in various ways:
8890
```java
@@ -92,7 +94,7 @@ codeView.getOptions()
9294
.withTheme(ColorTheme.MONOKAI);
9395
```
9496

95-
### Color themes
97+
### Color theme
9698
There are some default themes (see full list below):
9799
```java
98100
codeView.getOptions().setTheme(ColorTheme.SOLARIZED_LIGHT);

0 commit comments

Comments
 (0)