Skip to content

Commit

Permalink
Update line number section in the docs to add highlight line number m…
Browse files Browse the repository at this point in the history
…ethods
  • Loading branch information
AmrDeveloper committed Oct 28, 2022
1 parent ea896da commit b9a9cef
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions docs/line-number.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Starting From version 1.1.1 CodeView now have support for line number.
codeView.setEnableLineNumber(enableLineNumber);
```

### Check if line number is enabled
### Check if line number feature is enabled

```
codeView.isLineNumberEnabled();
Expand All @@ -20,12 +20,30 @@ codeView.isLineNumberEnabled();
codeView.setEnableRelativeLineNumber(enableRelativeLineNumber);
```

### Check if relative line number is enabled
### Check if relative line number feature is enabled

```
codeView.isLineRelativeNumberEnabled();
```

### Enable/Disable highlight current line

```
codeView.setEnableHighlightCurrentLine(enableHighlightCurrentLine);
```

### Check if highlight current line feature is enabled

```
codeView.isHighlightCurrentLineEnabled();
```

### Set highlight current line color

```
codeView.setHighlightCurrentLineColor(Color.GREY);
```

### Set line number text color

```
Expand Down

0 comments on commit b9a9cef

Please sign in to comment.