Skip to content

Commit 8f1e029

Browse files
authored
Update find-and-replace.md
1 parent 5019f8a commit 8f1e029

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

docs/find-and-replace.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,44 @@ Starting From version 1.2.1 CodeView now have support for find and replace featu
44

55
- To get a list of tokens that matchs your regex, you can use findMatches method.
66

7-
```
7+
``` java
88
List<Token> tokens = codeView.findMatches(regex);
99
```
1010

1111
- To highlight and get the next matching token you can use findNextMatch
12-
13-
```
12+
13+
``` java
1414
Token token = codeView.findNextMatch();
1515
```
1616

1717
- To highlight and get the previous matching token you can use findPrevMatch
1818

19-
```
19+
``` java
2020
Token token = codeView.findPrevMatch();
2121
```
2222

2323
- You can set differnt color for highlighting matching token depend on your theme
2424

25-
```
25+
``` java
2626
codeView.setMatchingHighlightColor(color);
2727
```
2828

2929
- To clear all the matches tokens
3030

31-
```
31+
``` java
3232
codeView.clearMatches();
3333
```
3434

3535
- You can replace the first string that matching the regex with other string.
3636

37-
```
37+
``` java
3838
codeView.replaceFirstMatch(regex, replacement);
3939
```
4040

4141
- You can replace all strings that matching the regex with other string.
4242

43-
```
43+
``` java
4444
codeView.replaceAllMatches(regex, replacement);
4545
```
4646

47-
You will find a full example with UI dialog for this feature in the example app
47+
You will find a full example with UI dialog for this feature in the example app

0 commit comments

Comments
 (0)