File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -6,47 +6,48 @@ or closing braces complete.
6
6
7
7
This features is disabled by default to enable or disable it
8
8
9
- ```
9
+ ``` java
10
10
codeView. enablePairComplete(enableFeature);
11
11
```
12
12
13
13
To enable or disable move the cursor to the center of the pair after inset it
14
14
15
- ```
15
+ ``` java
16
16
codeView. enablePairCompleteCenterCursor(enableFeature);
17
17
```
18
18
19
19
To use this feature you need to create a Map that contains the pairs keys and values for example
20
20
21
- ```
21
+ ``` java
22
22
Map<Character , Character > pairCompleteMap = new HashMap<> ();
23
23
pairCompleteMap. put(' {' , ' }' );
24
24
pairCompleteMap. put(' [' , ' ]' );
25
25
pairCompleteMap. put(' (' , ' )' );
26
26
pairCompleteMap. put(' <' , ' >' );
27
27
pairCompleteMap. put(' "' , ' "' );
28
+
28
29
```
29
30
30
31
To add your full pairs map
31
32
32
- ```
33
+ ``` java
33
34
codeView. setPairCompleteMap(pairCompleteMap);
34
35
```
35
36
36
37
To add a single pair
37
38
38
- ```
39
+ ``` java
39
40
codeView. addPairCompleteItem(' [' , ' ]' );
40
41
```
41
42
42
43
To remove a single pair
43
44
44
- ```
45
+ ``` java
45
46
codeView. removePairCompleteItem(' [' );
46
47
```
47
48
48
49
To remove all the pairs
49
50
50
- ```
51
+ ``` java
51
52
codeView. clearPairCompleteMap();
52
- ```
53
+ ```
You can’t perform that action at this time.
0 commit comments