# Code Toggles

Source: https://github.com/pixelandtonic/vuepress-theme-craftdocs#code-toggles(opens new window)

# Examples

You can create code toggles by wrapping multiple fenced code blocks with a code container:

echo "Hey, $name";

By default, toggle labels will be pulled from the value in themeConfig.codeLanguages that matches the code block’s language. If you want to provide a custom label instead, just type it after the code block language:

$success = craft()->entries->saveEntry($entry);