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.


                <div class="container-fluid">
  <h1 class="title text-center">Simple Text Editor</h1>
<div id="myDiv"></div>
<div class="footer text-center">
  <h6>Joe Anderson - 2016</h6>



  height: 500px
  background-color: white
  border: 1px solid black
  margin-top: 20px
  margin-bottom: 30px
  background-color: #CDE8E8
  padding: 10px
  background-color: #EEFFF3

  margin-top: 30px
  background-color: #CDE8E8
  padding: 5px


                var TextOutput = React.createClass({
  getInitialState: function(){
    return {
      text: 'Heading\n=======\n\nSub-heading\n-----------\n \n### Another deeper heading\n \nParagraphs 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\n  * apples\n  * oranges\n  * pears\n\nNumbered list:\n\n  1. apples\n  2. oranges\n  3. pears\n\nThe rain---not the reign---in\nSpain.\n\n *[Herman Fassett](*'
  changeText:function(e) {
  render: function(){
      <div className="text-boxes col-xs-12">
        <textarea onChange={this.changeText} className="col-xs-6" value={this.state.text}/>
        <MarkedText className="col-xs-6" text={this.state.text}/>

var MarkedText = React.createClass({
  rawMarkup : function() {
    var rawMarkup = marked(this.props.text, {sanitize:true}); 
    return {__html:rawMarkup
  render: function(){
    return (
      <div className="output col-xs-6">
        <span dangerouslySetInnerHTML = {this.rawMarkup()}/>

React.render(<TextOutput />,document.getElementById("myDiv"));