Pen Settings



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


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


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.


  <strong>Turn this Markdown...</strong>
  <textarea name="" id="markdown">
* **[1:49](#t=1:49)** Toys from the future.
* **[8:40](#t=8:40)** Talking about flip.

  <strong>... into this Cuefile</strong>
  <textarea name="" id="cuefile">
  TITLE ""
  FILE "" MP3
      PERFORMER ""
      TITLE "Toys from the future."
      INDEX 01 01:49:00
      PERFORMER ""
      TITLE "Talking about flip."
      INDEX 01 08:40:00


                * {
  box-sizing: border-box;
html, body {
  height: 100%;
body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
body > div {
  display: flex;
  flex-direction: column;
strong {
  display: block;
  text-align: center;
  padding: 1rem;
textarea {
  flex: 1;
  display: block;
  width: 100%;
  border: 0;
  font: 1.2rem monospace;
  padding: 1rem;

#markdown {
  background: lightblue;
#cuefile {
  background: #FEF9E8;


                const markdownTextarea = document.querySelector("#markdown");
const markddown = markdownTextarea.value;

const cuefileTextarea = document.querySelector("#cuefile");
const cuefile = cuefileTextarea.value;

 Step 1
   Break markdown into array of lines
   Loop over each line
Step 2
  Extract value "1:49" from line
Step 3
  Convert value to "01:49:00"
Step 4
  Extrat value "Toys from the future." from line
Step 5 
  Place these two values into a template you can see in the second textarea