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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


  text_string = 'This text is exactly 40 characters long.'
  zero_string   = ''
  40.times do
    zero_string += 0.to_s

  %h1 Courier
  %p= text_string
  .chUnits width: 40ch
  %p= zero_string

  %h1 Arial
  %p= text_string
  .chUnits width: 40ch
  %p= zero_string

  %h1 Georgia
  %p= text_string
  .chUnits width: 40ch
  %p= zero_string


  font-size: 20px
  line-height: 1.4
  padding: 40px 40px 0

  margin-bottom: 0.5em
  margin-top: 0
  line-height: 1
  font-size: inherit

  margin: 0

  background-color: rgba(red, 0.1)
  display: block
  height: 30px
  line-height: 30px
  text-indent: 20px  
  width: 40ch

  font-family: 'Courier', monospace

  font-family: 'Arial', sans-serif

  font-family: 'Georgia', serif

  margin-bottom: 1.75em