@@ -14,10 +14,25 @@ protected void onCreate(Bundle savedInstanceState) {
14
14
activity_main );
15
15
SyntaxView syntax_view = findViewById (R .id .syn );
16
16
17
- syntax_view .setBgColor ("#ffffff" );
18
- syntax_view .setPrintStatmentsColor ("#931B42" );
19
- syntax_view .setCodeTextColor ("#000000" );
20
- syntax_view .setRowNumbersBgColor ("#ffffff" );
21
- syntax_view .setRowNumbersColor ("#000000" );
17
+ //this will set the color of Code Text background
18
+ syntax_view .setBgColor ("#2b2b2b" );
19
+ //this will set the color of strings between " "
20
+ syntax_view .setPrintStatmentsColor ("#6a8759" );
21
+ //this will set the default code text color other than programming keywords!
22
+ syntax_view .setCodeTextColor ("#000000" );
23
+ //this will set programming keywords color like String,int,for,etc...
24
+ syntax_view .setKeywordsColor ("#cc7832" );
25
+ //this will set the numbers color in code | ex: return 0; 0 will be colored
26
+ syntax_view .setNumbersColor ("#4a85a3" );
27
+ //this will set the line number view background color at left
28
+ syntax_view .setRowNumbersBgColor ("#2b2b2b" );
29
+ //this will set the color of numbers in the line number view at left
30
+ syntax_view .setRowNumbersColor ("#cc7832" );
31
+ //this will set color of Annotations like super,@Nullable,etc ....
32
+ syntax_view .setAnnotationsColor ("#1932F3" );
33
+ //this will set special characters color like ;
34
+ syntax_view .setSpecialCharsColor ("#cc7832" );
35
+
36
+
22
37
}
23
38
}
0 commit comments