def METHOD_NAME(text):
    """Adds ## in front of all selected lines if any lines are selected,
    or just the current line otherwise"""
    sel_range = _get_focused_code_range(text)
    for lineno in range(sel_range.lineno, sel_range.end_lineno + 1):
        text.insert(str(lineno) + ".0", BLOCK_COMMENT_PREFIX)
    if sel_range.end_lineno > sel_range.lineno:
        _select_lines(text, sel_range.lineno, sel_range.end_lineno)
    text.edit_separator()