Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <script src="" crossorigin="anonymous" referrerpolicy="no-referrer" type="module"></script>
<link rel="stylesheet" href="">

<div class="container" style="max-width:992px;margin: 2rem auto;">

<p data-tg-tour='My first step 🦄' data-tg-order="0">Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid, explicabo nobis distinctio numquam, neque animi sint iste omnis, aliquam fugiat molestiae nulla error suscipit dolorem ad cum magni nihil facere.</p>

<button data-tg-tour='A button' data-tg-order="1" style="margin-top:3rem;background:lightgrey;padding: 0.5rem;" id="example-btn" onclick="handleBtnClick()">This is a button in my app</button>

<p data-tg-tour='The final step' data-tg-order="99" style="margin-top:3rem;background:lightblue;color:darkblue;padding: 1rem;border-radius:1rem;font-size:0.8rem;text-align:center;font-weight:600;">This is a basic demo that starts automatically on load. Refer back to documentatation for more detailed information and examples.</p>




                const tg = new tourguide.TourGuideClient({
  exitOnClickOutside: false


function handleBtnClick(){
  console.log('clicked button - do something with tg instance such as focus to a new group of tour steps, change route etc..')