parameters: (tag, start, doc=None)
docstring: Select lines between tag:BEGIN and tag:END
docstring_summary: Select lines between tag:BEGIN and tag:END
docstring_tokens: Select lines between tag : BEGIN and tag : END
function: def SelectTaggedLines(tag, start, doc=None):
      "Select lines between tag:BEGIN and tag:END"
      if doc is None: doc = app.current_doc
      text = doc.text
      begin = text.find(tag+':BEGIN', doc.get_selection_range()[1])
      if begin == -1:
          raise StandardError('Could not find tag %s:BEGIN' % tag)
      begin = text.find(native_endl, begin)
      end = text.find(tag+':END', begin)
      if end == -1:
          raise StandardError('Could not find tag %s:END' % tag)
      end = text.rfind(native_endl, begin, end) + len(native_endl)
      doc.select(begin, end)
function_tokens: def SelectTaggedLines ( tag , start , doc = None ) : if doc is None : doc = app . current_doc text = doc . text begin = text . find ( tag + ':BEGIN' , doc . get_selection_range ( ) [ 1 ] ) if begin == - 1 : raise StandardError ( 'Could not find tag %s:BEGIN' % tag ) begin = text . find ( native_endl , begin ) end = text . find ( tag + ':END' , begin ) if end == - 1 : raise StandardError ( 'Could not find tag %s:END' % tag ) end = text . rfind ( native_endl , begin , end ) + len ( native_endl ) doc . select ( begin , end )