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

              
                <div class="container">
  <h1>Syntax Highlighter for Blogger</h1>
  <span>
    <p><b>CSS </b></br>
<pre><code>/* FRAMEWORK */
strong,b{font-weight:bold;}
cite,em,i{font-style:italic;}
a:link{color:#49ACE1;text-decoration:none;outline:none;}
a:visited{color:#49ACE1;text-decoration:none;}
a:hover{color:#444444;text-decoration:none;}
a img{border:none;border-width:0;outline:none;}
abbr,acronym{border-bottom:1px dotted;cursor:help;}
sup,sub{vertical-align:baseline;position:relative;top:-.4em;font-size:86%;}
sub{top:.4em;}small{font-size:86%;}
kbd{font-size:80%;border:1px solid #777;padding:2px 5px;border-bottom-width:2px;border-radius:3px;}
mark{background-color:#ffce00;color:black;}
p,blockquote,pre,table,figure,hr,form,ol,ul,dl{margin:1.5em 0;}
hr{height:1px;border:none;background-color:#666;}
h1{font-size:1.8rem}
h2{font-size:1.6rem}
h3{font-size:1.4rem}
h4{font-size:1.2rem}
h5{font-size:1rem}
h6{font-size:0.9rem}</code></pre>
  <br/>
  <b>HTML</b>
  <pre><code>&lt;nav id='cssmenu'&gt;
&lt;div id='head-mobile'&gt;&lt;/div&gt;
&lt;div class='button' id='menu-button'&gt;&lt;/div&gt;
&lt;!-- menu navigasi header start ficri --&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href='/search/label/Blogger' title='Blogger'&gt;Blogger&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='/search/label/WordPress' title='WordPress'&gt;WordPress&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='/search/label/SEO' title='SEO'&gt;SEO&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='/p/tools.html' title='Web Tools'&gt;Web Tools&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href='/p/css-minifier.html' title='CSS Minifier'&gt;CSS Minifier&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='/p/kode-warna.html' title='Kode Warna HTML'&gt;Kode Warna HTML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='/p/parse-html.html' title='Parse HTML'&gt;Parse HTML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='/p/word-count.html' title='Word Count'&gt;Word Count&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href='/p/layanan-dan-jasa.html' title='Layanan dan Jasa'&gt;Layanan dan Jasa&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href='/p/jasa-backlink.html' title='Backlink'&gt;Backlink&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='/p/jasa-optimasi.html' title='Optimasi Template'&gt;Optimasi Template&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='/p/jasa-review.html' title='Review'&gt;Review&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- menu navigasi header end --&gt;
&lt;/nav&gt;</code></pre>
  <br/>
  <b>JavaScript</b>
  <pre><code>&lt;script&gt;            
$(window).scroll(function() {
    if($(this).scrollTop() &gt; 200) {
        $('#back-to-top').fadeIn();
    } else {
        $('#back-to-top').fadeOut();
    }
});
$('#back-to-top').hide().click(function() {
    $('html, body').animate({scrollTop:0}, 1000);
    return false;
});
&lt;/script&gt;</code></pre>
  </p>
      </span>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);
body {
  background: #f1f1f1 none repeat scroll top left;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  position: relative;
  line-height: normal;
}

a,
a:visited {
  color: #555;
  outline: none;
  text-decoration: none;
}

a:hover,
a:focus,
a:visited:hover {
  color: #22a1c4;
  text-decoration: none;
}

.container {
  max-width: 768px;
  margin: 5% auto;
  padding: 30px;
  background: #fff;
  color: #95a5a6;
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
  line-height: normal;
}

.container h1,
.container h2 {
  display: block;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  font-weight: 700;
  color: #336699;
}

.container h2 {
  margin-top: 30px;
}

/* Syntax Highlighter */
pre{padding:.8em 1em;margin:0.5em 0;background-color:#F7F7F9;border:1px solid #ddd;font-size:13px;color:#000;line-height:1.4em;position:relative;white-space:pre-wrap;word-wrap:break-word;overflow:auto;max-height:250px}
code{padding:0!important;color:#839496;background:none!important;border:none!important;display:block}
              
            
!

JS

              
                hljs.initHighlightingOnLoad();
              
            
!
999px

Console