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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

  <h1>REAPER ChangeLog to BBCode</h1>
  <p><small><a href="http://forum.cockos.com/showthread.php?t=186213">Cockos Forum Thread</a></small></p>
  <div class="input">
    <p>Copy paste an extract of the <a href="http://www.landoleet.org/whatsnew5.txt">changelog</a> here.</p>
    <div><textarea id="input">v5.50rc22 - September 6 2017
  + FX: various fixes related to user-preset navigation [sws=885]
  + Spectrogram: add spectral editing support, action to insert new edit regions [rv=vSBO_VC9q3E]

v5.32pre9 - January 6 2017
  + MIDI editor: better support for cut/copy/paste of MIDI events from/to multiple tracks
  + MIDI: don't play back notation for muted notes
  + MIDI: preserve muted events during glue
  + Notation editor: add support for more ornaments and techniques
  + Notation editor: fix setting one half of grand staff to +/- 8/15 va/vb (up or down one or two octaves)
  + Notation editor: support entering arbitrary track and note notation/ornaments via text entry (example: 0xE5D2 for "lift", see smufl.org)
  + Video: improve video processor bypass automation UI behavior
  + Windows: fix knob issues on Win10 HiDPI displays [t=168589]</textarea></div>

  <div class="output">
    <button class="copy-button" data-clipboard-target="#output">Copy</button>
    <textarea id="output" class="language-markup"></textarea></div>
              * {
  box-sizing: border-box;

body {
  font-family: Arial;
  background: #9CA8A8;

textarea {
  width: 100%;
  height: 30vh;
  padding: 1em!important;

.bbcode-toolbar {
  display: none;

.bbcode-preview {
  color: black;
  background: #E1E6E6;
              // Create BBCode editor

// Copy button
var clipboard = new ClipboardJS('.copy-button');

// Generate Output
$('button').on('click', function() {
  var html = $('#input').val();
  // Forum links
  html = html.replace(/\[(p=\d+|t=\d+)\]/g,
  // SWS links
  html = html.replace(/\[sws=(\d+)\]/g,
    '[[url=https://github.com/reaper-oss/sws/issues/$1]SWS Issue #$1[/url]]')
  // YouTube links
  html = html.replace(/\[rv=(.+)\]/g,
  // Actions
  html = html.replace(/"(.+)"/g,
  // ITEMS
  // New items
  html = html.replace(/  \+ (.+?): /g,
    '\[*][b][COLOR=Green]+ $1: [/COLOR][/b]');
  // Updated items
  html = html.replace(/  \# (.+?): /g,
    '\[*][b][COLOR=BLUE]# $1: [/COLOR][/b]');
  // Deleted Items
  html = html.replace(/  - (.+?)$/gm,
    '\[*][b][COLOR=RED]- $1[/COLOR][/b]');
  // Version
  html = html.replace(/^(v.+)\n/g,
  // If several versions are pasted
  html = html.replace(/\n(v.+)\n/g,
  var whatsnew_link = "";
  if( html.indexOf("+dev") >= 0 ) {
    whatsnew_link = "https://www.landoleet.org/whatsnew-dev.txt";
  } else {
    whatsnew_link = "https://www.landoleet.org/whatsnew-pre.txt";
  // Signature
  var signature = "\n\n[url=" + whatsnew_link + "]Changelog[/url] - [url=http://www.landoleet.org]Pre-Releases[/url]\n\n Generated by [url=https://codepen.io/X-Raym/details/ggPogG/]X-Raym's REAPER ChangeLog to BBCode[/url]"; //size attribute doesn't work well, and right hasn't been implemented in the parser yet
  signature = "\n[/list]\This thread is for pre-release features discussion. Use the [url=https://forum.cockos.com/forumdisplay.php?f=23]Feature Requests forum[/url] for other requests." + signature;
  // Add signature
  html = html.concat(signature);
  // Output HTML
  $('#output').focus(); // force render
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.