Sometimes you need to display a simple code snippets to your visitors. Just like we did in our entire documentation section! You can see various examples in documentation of Supreme Shortcodes – grab a code snippet. As you can see from the example you can put the code snippet shortcode inside of another shortcode such as toggle in our case.

Example with JavaScript code.

        
const mood = 'Happy';

if ( true === mood ) {
   console.log( 'the mood is::' + mood );
}
    

Simple CSS rule.

         
#myawesomediv {
    background: white;
    text: black;
    margin: 10px;
}