Pen Settings



CSS Base

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

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.


                <!-- created the #12in23 Challenge to provide a fun and structured way
for people to step out of their comfort zone and try something new.

This pen chooses a random programming language for you to try.

  <div class="min-h-screen p-5 flex flex-col gap-6 justify-center items-center">
    <div class="text-4xl text-center">
      In <span class="font-bold">{{ month }}</span>, try...
    <div class="text-7xl">{{ selectedLanguage }}!</div>

export default {
  data() {
    return {
      month: (new Date()).toLocaleString("default", { month: "long" }),
      interval: null,
      selectedLanguage: "",
      languages: [
        "Common Lisp",
        "Delphi Pascal",
        "Emacs Lisp",
        "MIPS Assembly",
        "Standard ML",
        "Vim script",
        "x86-64 Assembly",
  mounted() {
    this.interval = setInterval(() => {
      const i = Math.floor(Math.random() * this.languages.length);
      this.selectedLanguage = this.languages[i];
    }, 100);
    setTimeout(() => {
      confetti({ origin: { y: 0.7 } });
    }, 3000);