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
You can use both forms for build & built view, but note: ```setCodeContent(String)``` is final step when you build your view, otherwise not. If you firstly highlight and then set code content, code will not be highlighted if view was not built yet. Instructions above helps you to avoid errors. View has state to handle this behavior.
63
+
Please firstly set adapter or use codeView.codeContent().
64
+
And finally you must call highlight() to process highlighting once.
65
+
64
66
65
67
## Customizing
66
68
Use implicit form to code highlighting:
67
69
```java
68
-
codeView.highlightCode();
70
+
codeView.highlight();
69
71
```
70
72
or eplixit (see available extensions below):
71
73
```java
72
-
codeView.highlightCode("js"); // it will work fast!
74
+
codeView.highlight("js"); // it will work fast!
73
75
```
74
76
75
77
Extend default color theme:
76
78
```java
77
79
int myColor =ContextCompat.getColor(this, R.color.code_content_background);
0 commit comments