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

              
                	<blockquote class="twitter-tweet"><p lang="en" dir="ltr">In Soviet Russia, Twitter edits you.</p>&mdash; Kevin Marks (@kevinmarks) <a href="https://twitter.com/kevinmarks/status/1511531902385197062">April 6, 2022</a></blockquote>
	<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

	<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Here&#39;s an old example post of mine. Notice how the 2 deleted tweets are blank, making nonsense of the narrative: <a href="https://t.co/6exFMCeS0Y">https://t.co/6exFMCeS0Y</a><br>It first looked like this, then showed deleted ones as HTML, now it&#39;s blobs. <a href="https://t.co/eYw1hx5jYk">pic.twitter.com/eYw1hx5jYk</a></p>&mdash; Kevin Marks (@kevinmarks) <a href="https://twitter.com/kevinmarks/status/1508754959591956481?ref_src=twsrc%5Etfw">March 29, 2022</a></blockquote>
	<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
              
            
!

CSS

              
                
              
            
!

JS

              
                document.addEventListener('DOMContentLoaded', () => {
  function loadWidget() {
    script = document.createElement('script')
    script.type = 'text/javascript'
    script.async = false
    script.src = 'https://platform.twitter.com/widgets.js'
    document.getElementsByTagName('head')[0].appendChild(script)
  }

  document.querySelectorAll('.twitter-tweet').forEach(el => {
    // Pevent Twitter from acting on this blockquote until we know if the Tweet exists.
    el.classList.remove('twitter-tweet')

    // Find the URL of the tweet.
    const href = el.querySelector(':scope > a').href

    // If the tweet exists, add the class back and re-fire the Twitter widgets JS.
    fetch('https://stabletweet.markj.workers.dev/exists?url=' + href).then(res => {
      if (res.ok) {
        el.classList.add('twitter-tweet')
        loadWidget()
      }
    })
  })
})
              
            
!
999px

Console