'Gets the next code example after soup tag object
Args:
Soup tag object
Returns:
Text inside <pre> tag'

def get_example(self, soup):

    text = soup.findNext('pre').get_text()
    text = text.strip('\n')
    return text.replace('\n', '\\n')
