This patch adds a text_editor.py file to the \scripts\startup\bl_operators folder, which allows for adding operators in Python. Most of the editors in Blender are using this option, but so far not the Text Editor, which is surprising, considering the advantages Python has when it comes to dealing with strings.
Two operators are included:
- Trim Whitespaces: Trailing, Leading and Trailing and Leading.
- Change Case: UPPER CASE, lower case, Titel Case, Capitalize case, snake_case and CamelCase
Trim Whitespaces added to the Format menu:
Change Case has been added to the Format menu: