Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3a8f3a0

Browse files
authoredDec 23, 2022
Update pair-complete.md
1 parent 341cbbe commit 3a8f3a0

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed
 

‎docs/pair-complete.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,48 @@ or closing braces complete.
66

77
This features is disabled by default to enable or disable it
88

9-
```
9+
``` java
1010
codeView.enablePairComplete(enableFeature);
1111
```
1212

1313
To enable or disable move the cursor to the center of the pair after inset it
1414

15-
```
15+
``` java
1616
codeView.enablePairCompleteCenterCursor(enableFeature);
1717
```
1818

1919
To use this feature you need to create a Map that contains the pairs keys and values for example
2020

21-
```
21+
``` java
2222
Map<Character, Character> pairCompleteMap = new HashMap<>();
2323
pairCompleteMap.put('{', '}');
2424
pairCompleteMap.put('[', ']');
2525
pairCompleteMap.put('(', ')');
2626
pairCompleteMap.put('<', '>');
2727
pairCompleteMap.put('"', '"');
28+
2829
```
2930

3031
To add your full pairs map
3132

32-
```
33+
``` java
3334
codeView.setPairCompleteMap(pairCompleteMap);
3435
```
3536

3637
To add a single pair
3738

38-
```
39+
``` java
3940
codeView.addPairCompleteItem('[', ']');
4041
```
4142

4243
To remove a single pair
4344

44-
```
45+
``` java
4546
codeView.removePairCompleteItem('[');
4647
```
4748

4849
To remove all the pairs
4950

50-
```
51+
``` java
5152
codeView.clearPairCompleteMap();
52-
```
53+
```

0 commit comments

Comments
 (0)
Please sign in to comment.