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.


                <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<body class="bg-primary">
<div id="wrapper" class="wrapper">


                $primary-text: #ffffff;
$secondary-text: #000000;
a, a:hover, a:visited {
  color: $primary-text;
  margin-top: 20px;

  min-height: 500px;
  width: 100%;
  color: $secondary-text;

#right {
  margin-left: 10px;



                // Set up the screen layout.
var BuildScreen = React.createClass({
  render: function() {
    return (
      <div className='row'>
        <div className='container col-md-5 col-xs-5 col-md-offset-1'>
          <textarea id='user-input'></textarea>
        <div className='container col-md-5 col-xs-5'>
          <div id='right'></div>
      <div className='row text-center'>
        <a href="" target="_blank">Raymond Rizzo</a>

// Render the screen.
ReactDOM.render(<BuildScreen/>, document.getElementById('wrapper'));

// Set the textbox contents.
document.getElementById('user-input').value = 'Heading\n=======\n\nSub-heading\n-----------\n\n ### Another deeper heading\n\n Paragraphs are separated\nby a blank line.\n\nLeave 2 spaces at the end of a line to do a  \nline break\n\nText attributes *italic*, **bold**, \n`monospace`, ~~strikethrough~~ .\n\nShopping list:\n  * apples\n  * oranges\n  * pears\nNumbered list:\n\n  1. apples\n  2. oranges\n  3. pears\n\n\nThe rain---not the reign---in  \nSpain.\n\n *[Herman Fassett](*';

// Do the initial formatting.
document.getElementById('right').innerHTML = (marked(document.getElementById('user-input').value));

// Watch for changes and update the right div with formatted text.
  document.getElementById('right').innerHTML = (marked(document.getElementById('user-input').value));