In Command menu click Center Text menu item. The selected text will be centered in editor. Notice that the centering is a font and size of window depended. When the text is not selected Center Text menu item will be disabled.