Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                / This an example on how to use Show your terms!, a very lightweight pure js lib to show terminal interactions.
/ See it on GitHub:
/ https://github.com/kandebonfim/show-your-terms

.showyourterms data-title="demo"
  .type data-action='command' data-delay="800" Please, teach me how to use Show Your Terms!
  .grey Well done! First: Choose your package manager [ bower / npm ]:
  .type data-action='command' data-delay="800" bower
  .grey Ok, you just have to run '$ bower install show-your-terms --save'
  .type data-action='command' data-delay="800" hmmm, and how can I import it?
  .grey Just link show-your-terms.min.js in your website's head.
  .type data-action='command' data-delay="800" oh, thanks!
  .green data-delay='8000' You're welcome!

a.link href="https://kandebonfim.github.io/show-your-terms/" target="_new" see Show your terms! website >>
              
            
!

CSS

              
                // Importing show-your-terms.min.css is optional.
// https://cdn.rawgit.com/kandebonfim/show-your-terms/master/dist/show-your-terms.min.css

body
  background-color: #567FA8
  padding: 60px
  
.link
  position: absolute
  bottom: 0
  right: 0
  margin: 30px
  font-family: 'Roboto Mono', monospace
  color: white
  text-decoration: none
  
  &:hover
    opacity: .8
              
            
!

JS

              
                // First you have to instantiate a new ShowYourTerms class:
new ShowYourTerms('.showyourterms')
              
            
!
999px

Console