Rechercher une page de manuel
Padre::Wx::Editor.3pm
Langue: en
Version: 2010-06-11 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
get_brace_info
Look at a given position in the editor if there is a brace (according to the setting editor_braces) before or after, and return the information about the context It always look first at the character after the position.Params: pos - the cursor position in the editor [defaults to cursor position) : int Return: undef if no brace, otherwise [brace, actual_pos, is_after, is_opening] where: brace - the brace char at actual_pos actual_pos - the actual position where the brace has been found is_after - true iff the brace is after the cursor : boolean is_opening - true iff only the brace is an opening one Examples: |{} => should find the { : [0,{,1,1] {|} => should find the } : [1,},1,0] {| } => should find the { : [0,{,0,1]
get_brace_type
Tell if a character is a brace, and if it is an opening or a closing oneParams: char - a character : string Return: int : 0 if this is not a brace, an odd value if it is an opening brace and an even one for a closing brace
find_matching_brace
Find the position of to the matching brace if any. If the cursor is inside the braces the destination will be inside too, same it is outside.Params: pos - the cursor position in the editor [defaults to cursor position) : int Return: matching_pos - the matching position, or undef if none
goto_matching_brace
Move the cursor to the matching brace if any. If the cursor is inside the braces the destination will be inside too, same it is outside.Params: pos - the cursor position in the editor [defaults to cursor position) : int
select_to_matching_brace
Select to the matching opening or closing brace. If the cursor is inside the braces the destination will be inside too, same it is outside.Params: pos - the cursor position in the editor [defaults to cursor position) : int
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre