Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <h2>Example</h2>

<h3>object</h3>
<div>object要素やiframe要素で表示すると、内部の画像やリンクをそのまま再現できる。今作はオリジナルドキュメントのHTMLをそのまま切り出しているので文字の選択もできる。</div>
<object type="image/svg+xml" data="https://daiiz-paprika.appspot.com/doc/7e7a72d9bc815ecbca8524259669eaf7#.svg"></object>

<h3>img</h3>
<div>img要素で表示する場合は、埋め込まれた外部リソースは読み込めない。内部のa要素もクリックできない。これは仕方ない。</div>
<img src="https://daiiz-paprika.appspot.com/doc/7e7a72d9bc815ecbca8524259669eaf7#.svg" />
              
            
!

CSS

              
                body {
  background-color: #e9e7e4;
  padding: 8px;
  font-family: sans-serif;
}

div {
  padding: 8px 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console