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


                <div id="window">
  <div id="buttons">
    <a href="#" id="minimize"></a>
    <a href="#" id="resize"></a>
    <a href="#" id="close"></a>
  <div id="title">Notepad</div>
  <textarea id="textarea"></textarea>



  width: 600px;
  background: #d9d9d9;
  margin: 0 auto;
  margin-top: 2%;
  border-radius: 3px;
  padding: 12px 0;
  font-family: Verdana, sans-serif;
  color: #333;
  cursor: default;
  box-shadow: 0 0 16px -2px rgba(50,50,50,.5);

  float: right;
  margin-right: 12px;

#buttons a{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  transition: background .3s;
  -webkit-transition: background .3s;

#minimize{background: #3c6;}
#resize{background: #cc3;}
#close{background: #c33;}
#minimize:hover{background: #1a4;}
#resize:hover{background: #aa1;}
#close:hover{background: #a11;}

  margin-left: 12px;
  font-size: 90%;

  width: 96%;
  max-width: 96%;
  min-height: 220px;
  background: #efefef;
  margin-top: 10px;
  border: 0;
  padding: 2%;
  font-family: Verdana, sans-serif;
  font-size: 95%;
  line-height: 24px;
  color: #333;
  overflow: auto;


                var textarea = $('textarea'),
    speed = 80, //Writing speed in milliseconds
    text='Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur laborum repellendus quisquam eum nam quo beatae maxime culpa illo earum ducimus eius unde quis repellat magnam. Possimus recusandae magni quam hic suscipit iste nostrum sed neque nemo aperiam cum harum mollitia? Vero velit at facilis ratione recusandae eveniet libero expedita nihil voluptates eum soluta perspiciatis sed sapiente reiciendis delectus nemo vitae eius aliquid explicabo omnis nesciunt architecto aperiam modi dolorum!';

function writeText(text){
      textarea.text() + text[$('#textarea').text().length]
  if(textarea.text().length == text.length){

var timeout = setInterval('writeText(text)', speed);