Below is a PostEditor. It gives you some useful editing features, such as bracket matching. By default, it only managed tab indents. If you use the tab key things indent and maintain that indentation.