Skip to content

Commit 19f3dbc

Browse files
committed
Merge branch 'master' into develop
2 parents 63ffdf4 + b4a6820 commit 19f3dbc

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# CodeView (Android)
2+
3+
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-codeview--android-green.svg?style=true)](https://android-arsenal.com/details/1/4216)
4+
[![Release](https://jitpack.io/v/softwee/codeview-android.svg)](https://jitpack.io/#softwee/codeview-android)
5+
26
CodeView helps to show code content with syntax highlighting in native way.
37

48
## Description
@@ -23,7 +27,7 @@ allprojects {
2327

2428
Add the dependency:
2529
```groovy
26-
compile 'com.github.softwee:codeview-android:1.0.0'
30+
compile 'com.github.softwee:codeview-android:1.0.3'
2731
```
2832

2933
## Usage
@@ -56,13 +60,14 @@ codeView.setCodeContent(getString(R.string.listing_java));
5660
codeView.highlightCode("java");
5761
```
5862

59-
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. Instructions above helps you to avoid errors. View has state to handle this behavior.
63+
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.
6064

6165
## Customizing
62-
Use implicit or eplixit form to code highlighting:
66+
Use implicit form to code highlighting:
6367
```java
6468
codeView.highlightCode();
6569
```
70+
or eplixit (see available extensions below):
6671
```java
6772
codeView.highlightCode("js"); // it will work fast!
6873
```
@@ -87,10 +92,18 @@ codeView.setCodeListener(new OnCodeLineClickListener() {
8792
```
8893

8994
## How it looks in app
90-
See <a href="https://github.com/Softwee/codeview-android/tree/master/example">example</a>.<br>
95+
See <a href="https://github.com/Softwee/codeview-android/blob/master/example/src/main/java/io/github/kbiakov/codeviewexample/ListingsActivity.java">example</a>.<br>
9196

9297
[![CodeView_Android_Screenshot.png](https://s10.postimg.org/ckzv9xmm1/Code_View_Android_Screenshot.png)](https://postimg.org/image/6wtkj1i9h/)
9398

99+
## List of available languages & their extensions
100+
C/C++/Objective-C (```"c"```, ```"cc"```, ```"cpp"```, ```"cxx"```, ```"cyc"```, ```"m"```), C# (```"cs"```), Java (```"java"```),Bash (```"bash"```, ```"bsh"```, ```"csh"```, ```"sh"```), Python (```"cv"```, ```"py"```, ```"python"```), Perl (```"perl"```, ```"pl"```, ```"pm"```), Ruby (```"rb"```, ```"ruby"```), JavaScript (```"javascript"```, ```"js"```), CoffeeScript (```"coffee"```), Rust (```"rc"```, ```"rs"```, ```"rust"```), Appollo (```"apollo"```, ```"agc"```, ```"aea"```), Basic (```"basic"```, ```"cbm"```), Clojure (```"clj"```), Css (```"css"```), Dart (```"dart"```), Erlang (```"erlang"```, ```"erl"```), Go (```"go"```), Haskell (```"hs"```), Lisp (```"cl"```, ```"el"```, ```"lisp"```, ```"lsp"```, ```"scm"```, ```"ss"```, ```"rkt"```), Llvm (```"llvm"```, ```"ll"```), Lua (```"lua"```), Matlab (```"matlab"```), ML (OCaml, SML, F#, etc) (```"fs"```, ```"ml"```), Mumps (```"mumps"```), N (```"n"```, ```"nemerle"```), Pascal (```"pascal"```), R (```"r"```, ```"s"```, ```"R"```, ```"S"```, ```"Splus"```), Rd (```"Rd"```, ```"rd"```), Scala (```"scala"```), SQL (```"sql"```), Tex (```"latex"```, ```"tex"```), VB (```"vb"```, ```"vbs"```), VHDL (```"vhdl"```, ```"vhd"```), Tcl (```"tcl"```), Wiki (```"wiki.meta"```), XQuery (```"xq"```, ```"xquery"```), YAML (```"yaml"```, ```"yml"```), formats (```"json"```, ```"xml"```, ```"proto"```), ```"regex"```
101+
102+
Didn't found yours? Please, open issue to show your interest & I try to add this language in next releases.
103+
104+
## Author
105+
### <a href="https://github.com/kbiakov">Kirill Biakov</a>
106+
94107
## License MIT
95108
Copyright (c) 2016 Softwee
96109

0 commit comments

Comments
 (0)