10. An electronic device comprising: a user input device for allowing a user to input characters; a memory for storing input characters; and a processor connected to the user input device and the memory, the processor being operable, when an input character that is an opening character of a predefined character pair is input, to cause the opening character and a corresponding closing character of the character pair to be automatically inserted on the display screen and in the memory before and after selected text, respectively.
10. An electronic device comprising: a user input device for allowing a user to input characters; a memory for storing input characters; and a processor connected to the user input device and the memory, the processor being operable, when an input character that is an opening character of a predefined character pair is input, to cause the opening character and a corresponding closing character of the character pair to be automatically inserted on the display screen and in the memory before and after selected text, respectively. 14. The electronic device of claim 10 wherein the character pairs include the open and close bracket pairs { }; [ ]; ( ) and < >.