Improve BCodeEdit

Add convenience method selectText(int, int), useful for selecting text
by lines.