@staticmethod
def construct_code_tab(contents, active=False):
    """
        This convenience method wraps contents in the proper markup

        Parameters:
        contents: The contents of the tab
        active: Whether or not the tab should be marked as active
        """
    return '<div class="code-tab%s">%s</div>' % (' active' if active else
        '', contents)
