Pen Settings



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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <div id="app">
  <p>The date is {{ date | date }}.</p>
  <p>We've had {{ accidentFree | number }} accident free days!</p>
  <p>Your current debt is {{ debt | currency }}.</p>
  Use to change values above:
  Date: <input v-model="date"><br/>
  Accident Free Days: <input v-model="accidentFree"><br/>
  Debt: <input v-model="debt"><br/>



                input {


                Vue.filter('date', s =>  {
  if(!window.Intl) return s;
  // convert to date
  if(!(s instanceof Date)) {
    let orig = s;
    s = new Date(s);
    if(s == 'Invalid Date') return orig;
  return new Intl.DateTimeFormat().format(s);

Vue.filter('number', s =>  {
  if(!window.Intl) return s;
  return new Intl.NumberFormat().format(s);

function getLang() {
  if (navigator.languages != undefined) return navigator.languages[0]; 
  else return navigator.language;

Vue.filter('currency', s =>  {
  let result = new Intl.NumberFormat(getLang(), {style:'currency',currency:'EUR'}).format(s);
  return result;

const app = new Vue({
    date:new Date(),