def __init__(self, context=None): self._content = '' "Editor's content" self.apple_script = os.path.join(os.getenv('TM_BUNDLE_SUPPORT'), 'pasteboard.scpt') zen.set_newline(os.getenv('TM_LINE_ENDING', zen.get_newline())) self.set_context(context)
def set_context(self, context): """ Setup underlying editor context. You should call this method <code>before</code> using any Zen Coding action. @param context: context object """ self._context = context zen_coding.set_newline(tea.get_line_ending(context)) zen_coding.zen_settings['variables']['indentation'] = tea.get_indentation_string(context)