You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<b>Note:</b> Each <b>CodeView</b> has a adapter and each adapter has options. When calling ```setOptions(...)``` or ```setAdapter(...)``` the current adapter is "flushed" with the 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
85
86
86
### Options
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.
87
+
Options helps to easily set necessary params, such as code & language, color theme, font, format, shortcut params (max lines, note) and code line click listener. Some params are unnecessary.
88
88
89
89
When the view is initialized (options or adapter are set) you can manipulate the options in various ways:
Also you can create custom `Format` by providing params such as `scaleFactor`, `lineHeight`, `borderHeight` (above first line and below last) and `fontSize`.
139
+
118
140
### Adapter
119
141
Sometimes you may want to take code lines under your control, and that's why you need a <b>Adapter</b>.
Didn't found yours? Please, open issue to show your interest & I'll try to add this language in next releases.
188
210
189
211
## List of available themes
190
-
1. Default (simple light theme).
191
-
2. Solarized Light.
192
-
3. Monokai.
212
+
* Default (simple light theme).
213
+
* Solarized Light.
214
+
* Monokai.
215
+
216
+
## List of available fonts
217
+
* Consolas
218
+
* CourierNew
219
+
* DejaVuSansMono
220
+
* DroidSansMonoSlashed
221
+
* Inconsolata
222
+
* Monaco
193
223
194
224
## Contribute
195
225
1. You can add your theme (see [ColorTheme](https://github.com/Softwee/codeview-android/blob/master/codeview/src/main/java/io/github/kbiakov/codeview/highlight/CodeHighlighter.kt) class). Try to add some classic color themes or create your own if it looks cool. You can find many of them in different open-source text editors.<br>
0 commit comments