1Padre::Wx::Editor(3)  User Contributed Perl Documentation Padre::Wx::Editor(3)
2
3
4
5   get_brace_info
6       Look at a given position in the editor if there is a brace (according
7       to the setting editor_braces) before or after, and return the
8       information about the context It always look first at the character
9       after the position.
10
11               Params:
12                       pos - the cursor position in the editor [defaults to cursor position) : int
13
14               Return:
15                       undef if no brace, otherwise [brace, actual_pos, is_after, is_opening]
16                       where:
17                               brace - the brace char at actual_pos
18                               actual_pos - the actual position where the brace has been found
19                               is_after - true iff the brace is after the cursor : boolean
20                               is_opening - true iff only the brace is an opening one
21
22               Examples:
23
24                       |{} => should find the { : [0,{,1,1]
25                       {|} => should find the } : [1,},1,0]
26                       {| } => should find the { : [0,{,0,1]
27
28   get_brace_type
29       Tell if a character is a brace, and if it is an opening or a closing
30       one
31
32               Params:
33                       char - a character : string
34
35               Return:
36                       int : 0 if this is not a brace, an odd value if it is an opening brace and an even
37                       one for a closing brace
38
39   find_matching_brace
40       Find the position of to the matching brace if any. If the cursor is
41       inside the braces the destination will be inside too, same it is
42       outside.
43
44               Params:
45                       pos - the cursor position in the editor [defaults to cursor position) : int
46
47               Return:
48                       matching_pos - the matching position, or undef if none
49
50   goto_matching_brace
51       Move the cursor to the matching brace if any. If the cursor is inside
52       the braces the destination will be inside too, same it is outside.
53
54               Params:
55                       pos - the cursor position in the editor [defaults to cursor position) : int
56
57   select_to_matching_brace
58       Select to the matching opening or closing brace. If the cursor is
59       inside the braces the destination will be inside too, same it is
60       outside.
61
62               Params:
63                       pos - the cursor position in the editor [defaults to cursor position) : int
64
65
66
67perl v5.28.1                      2011-08-16              Padre::Wx::Editor(3)
Impressum