Skip to content

Commit

Permalink
Created Test App
Browse files Browse the repository at this point in the history
  • Loading branch information
Badranh committed Jun 25, 2018
1 parent dc4c4de commit 947af0d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,25 @@ protected void onCreate(Bundle savedInstanceState) {
activity_main);
SyntaxView syntax_view = findViewById(R.id.syn);

syntax_view.setBgColor("#ffffff");
syntax_view.setPrintStatmentsColor("#931B42");
syntax_view.setCodeTextColor("#000000");
syntax_view.setRowNumbersBgColor("#ffffff");
syntax_view.setRowNumbersColor("#000000");
//this will set the color of Code Text background
syntax_view.setBgColor("#2b2b2b");
//this will set the color of strings between " "
syntax_view.setPrintStatmentsColor("#6a8759");
//this will set the default code text color other than programming keywords!
syntax_view.setCodeTextColor("#000000");
//this will set programming keywords color like String,int,for,etc...
syntax_view.setKeywordsColor("#cc7832");
//this will set the numbers color in code | ex: return 0; 0 will be colored
syntax_view.setNumbersColor("#4a85a3");
//this will set the line number view background color at left
syntax_view.setRowNumbersBgColor("#2b2b2b");
//this will set the color of numbers in the line number view at left
syntax_view.setRowNumbersColor("#cc7832");
//this will set color of Annotations like super,@Nullable,etc ....
syntax_view.setAnnotationsColor("#1932F3");
//this will set special characters color like ;
syntax_view.setSpecialCharsColor("#cc7832");


}
}

0 comments on commit 947af0d

Please sign in to comment.