def _highlight(value):
    """
    highlight 'type validator'.
    """
    if value not in ('html', 'ansi'):
        raise ValueError('Highlight must be "html" or "ansi", got {0}'.
            format(value))
    return value
