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.


                <h1>The man who speaks in anagrams (Monty Python)</h1>

<div class="dialogue-wrapper">
  <p class="voice-1"><span>Palin:</span> Hello, good evening and welcome to another edition of Blood Devastation Death War and Horror, and later on we'll be meeting a man who <em>does</em> gardening. But first on the show we've got a man who speaks entirely in anagrams.</p>
  <p class="voice-2"><span>Idle:</span> Taht si crreoct.</p>
  <p class="voice-1"><span>Palin:</span> Do you enjoy it?</p>
  <p class="voice-2"><span>Idle:</span> I stom certainly od. Revy chum so.</p>
  <p class="voice-1"><span>Palin:</span> And what's your name?</p>
  <p class="voice-2"><span>Idle:</span> Hamrag - Hamrag Yatlerot.</p>
  <p class="voice-1"><span>Palin:</span> Well, Graham, nice to have you on the show. Now, where do you come from?</p>
  <p class="voice-2"><span>Idle:</span> Bumcreland.</p>
  <p class="voice-1"><span>Palin:</span> Cumberland?</p>


                %speak {
  font-family: Courier New, monospace;
  max-width: 400px;
  clear: both;
  span {
    font-weight: bold;
    display: block;
.voice-1 {
  @extend %speak;
  span {
    color: magenta;
.voice-2 {
  @extend %speak;
  float: right;
    span {
      color: green;
h1 {
  font-family: Helvetica, sans-serif;
  text-align: center;
.dialogue-wrapper {
  width: 500px;
  margin: auto;