def format(self, *args, **kwargs):
inplace = kwargs.pop("<STR_LIT>", False)<EOL>if not inplace:<EOL><INDENT>return str(self).format(*args, **kwargs)<EOL><DEDENT>self._lines = str(self).format(*args, **kwargs).splitlines()<EOL>
Format the string representation of the editor.

Args:
    inplace (bool): If True, overwrite editor's contents with formatted contents