Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ 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.


Save Automatically?

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.


                <p style="white-space: break-spaces">This paragraph has <code>white-space: break-spaces</code> which is relatively new.
    It's behaviour is most like <code>white-space: pre-wrap</code> as it will preserve new lines and spaces but will also wrap neatly within the box.
The only difference is that it will wrap a sentence when it ends with multiple spaces                
The gap above is caused by multiple spaces at the end of the sentence. You can highlight the sentence to see the spaces.</p>


                p {
  border: thin solid #ccc;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
  max-width: 70ch;

code {
  background-color: #f1f1f1;
  border: thin solid #ccc;
  border-radius: 4px;
  color: #cc3300;
  font-size: 16px;
  padding: 4px;