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

              
                <main>
  <h1>
    Basic RoughNotation Demo
  </h1>
  <p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    <em>Phasellus</em> purus quam, aliquet nec commodo quis, pharetra ut orci. Donec laoreet ligula nisl, placerat
    molestie
    mauris luctus id. Fusce dapibus non libero nec lobortis.
  </p>
  <p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed accumsan nisi hendrerit augue molestie tempus.
    <strong>Phasellus</strong> purus quam, aliquet nec commodo quis, pharetra ut orci. Donec laoreet ligula nisl,
    placerat molestie
    mauris luctus id. Fusce dapibus non libero nec lobortis. Nullam iaculis nisl ac eros consequat, sit amet placerat
    massa vulputate. <span>Maecenas euismod volutpat ultrices. Pellentesque felis ex, ullamcorper in felis finibus, feugiat
      dignissim augue. Integer malesuada non eros consectetur interdum. Mauris mollis non urna in porta.</span>
  </p>
  <p id="block">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed accumsan nisi hendrerit augue molestie tempus.
    Phasellus purus quam, aliquet nec commodo quis, pharetra ut orci. Donec laoreet ligula nisl, placerat
    molestie
    mauris luctus id. Fusce dapibus non libero nec lobortis. Nullam iaculis nisl ac eros consequat, sit amet placerat.
  </p>
</main>
              
            
!

CSS

              
                body {
  padding: 0 2rem;
}
              
            
!

JS

              
                import { annotate } from "https://unpkg.com/rough-notation?module";

const n1 = document.querySelector("em");
const n2 = document.querySelector("strong");
const n3 = document.querySelector("h1");
const n4 = document.querySelector("span");
const n5 = document.querySelector("#block");

const a1 = annotate(n1, { type: "underline", color: "blue" });
const a2 = annotate(n2, { type: "circle", color: "red", padding: 10 });
const a3 = annotate(n3, { type: "box", color: "orange" });
const a4 = annotate(n4, {
  type: "highlight",
  color: "yellow",
  iterations: 1,
  multiline: true
});
const a5 = annotate(n5, {
  type: "bracket",
  color: "red",
  padding: [2, 10],
  brackets: ["left", "right"],
  strokeWidth: 3
});

a1.show();
a2.show();
a3.show();
a4.show();
a5.show();

              
            
!
999px

Console