Skip to content

Commit 7717b6e

Browse files
committed
2 parents 88a42e4 + 227840c commit 7717b6e

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Beautiful Android Syntax View with line counter it will automatically highlight
44
# Example
55
Colors can be modified as you want
66

7-
![Screenshot](http://cryptobrewery.net/scn/3.png)
7+
![Screenshot](http://cryptobrewery.net/scn/4.png)
88

99
# How to add to your app
1010

@@ -96,15 +96,25 @@ setContentView(syntax_view);
9696
//do whatever you want
9797
}
9898
});
99-
99+
```
100+
# Changing Font
101+
```
102+
Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "yourFont.ttf");
103+
syntax_view.setFont(tf);
100104
```
101105
# Changes:
102-
6/25/2018:
106+
+6/25/2018:
103107
- Uploaded Syntax View
104108
- Syntax Highlighting
105109
- Line Number Counter
106110
- Color Flexibility to meet user requirements
107111

112+
+6/26/2018:
113+
- added new method setFont() to change font of the code if you wish to
114+
- changed the default font to a new classic font
115+
- disabled autocorrect (By: MohamedElidrissi)
116+
- removed unused attribute (By: MohamedElidrissi)
117+
108118
# Contribute
109119
Next update:
110120
- User will have the ability to choose a language like " C,Java,Python" So we can do a faster UI and Highlighting(feel free to implement this update if you are able to do so)

0 commit comments

Comments
 (0)