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.

            
              <html>
<head>
    <link rel="stylesheet" href="https://rawgit.com/MGApcDev/TypesetBot/master/dist/typesetbot.min.css">
    <script type="text/javascript" src="https://rawgit.com/MGApcDev/TypesetBot/master/dist/typesetbot.js"></script>

    <!-- (optional) -->
    <!-- hyphenation library -->
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.rawgit.com/bramstein/hypher/v0.2.5/dist/jquery.hypher.js"></script>
    <!-- hyphenation pattern for US english -->
    <script type="text/javascript" src="https://cdn.rawgit.com/bramstein/hyphenation-patterns/dc01d58a/dist/browser/en-us.js"></script>
  
    <script type="text/javascript">
        TypesetBot.attach(
          '.some-query-selector',
          {
            alignment: 'justify',
            hyphenLanguage: 'en-us',
            // ...more settings
          }
        );
    </script>
  
</head>
<body class="some-query-selector">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Aenean suscipit magna sit amet mi ullamcor-
per, ac egestas sem tempor. Suspendisse maximus
massa orci, non condimentum ligula gravida nec.
Nam lacus orci, elementum id dolor vitae, laoreet
commodo elit. Morbi a felis sit amet diam egestas
convallis. Sed imperdiet vestibulum lacus, euismod
sagittis nisi suscipit sit amet. Nam ut lectus nunc. Ali-
quam erat volutpat. Suspendisse sollicitudin finibus
neque eu posuere. Etiam cursus fermentum nibh,
ac iaculis quam fringilla et. Proin lacinia imperdiet
lorem. Duis in lorem non lectus accumsan biben-
dum. Fusce mattis purus vitae lacus posuere sus-
cipit. Donec vitae nibh quis lacus lacinia consequat
eget in mauris. Ut diam mauris, dictum id porta id,
lacinia scelerisque neque. Nullam id ultrices ligu-
la, eget ullamcorper risus. Aenean a justo sed felis
maximus blandit in ut purus. Vestibulum pharetra ur-
na non nisi pharetra mattis. Duis neque eros, ultrices
in malesuada dignissim, porttitor quis lectus. Mau-
ris id bibendum odio. In porttitor, libero a pulvinar
tincidunt, purus ante auctor augue, ornare placerat
sem dui nec ante. Ut tincidunt ante pretium magna
dictum, id venenatis nulla cursus. Integer porta mau-
ris arcu, in viverra elit sagittis at.</p>
</body>
</html>
            
          
!
999px
🕑 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.

Console