File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
88List<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
1414Token token = codeView. findNextMatch();
1515```
1616
1717- To highlight and get the previous matching token you can use findPrevMatch
1818
19- ```
19+ ``` java
2020Token token = codeView. findPrevMatch();
2121```
2222
2323- You can set differnt color for highlighting matching token depend on your theme
2424
25- ```
25+ ``` java
2626codeView. setMatchingHighlightColor(color);
2727```
2828
2929- To clear all the matches tokens
3030
31- ```
31+ ``` java
3232codeView. clearMatches();
3333```
3434
3535- You can replace the first string that matching the regex with other string.
3636
37- ```
37+ ``` java
3838codeView. replaceFirstMatch(regex, replacement);
3939```
4040
4141- You can replace all strings that matching the regex with other string.
4242
43- ```
43+ ``` java
4444codeView. 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
You can’t perform that action at this time.
0 commit comments