cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <p><a href="#" class="customize">Click to Toggle Custom Gist Syntax Highlighting</a></p>
<h2><span>Default</span><br> Gist Syntax Highlighting</h2>
<div class="default">
  <script src="https://gist.github.com/msguerra74/d10512976356e16f3625.js"></script>
</div>
            
          
!
            
              // The .customized class wrapper is only used for this demonstration

.customized {
  
  // These are the actual custom syntax highlighting CSS overrides
  
  .blob-code, 
  .blob-num {
    font-family: Source Code Pro, Courier New, Courier, Lucida Sans Typewriter, Lucida Typewriter, monospace !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  .blob-code {
    color: #c7c7c7 !important;
  }

  @media screen and (min-width:40em) {
    .blob-code {
      font-size: 1.125rem !important;
    }
  }

  .blob-num {
    border-right: 2px solid #373737 !important;
    color: #878787 !important;
  }

  .gist-data {
    background-color: #272727 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1rem;
  }

  @media screen and (min-width:40em) {
    .gist-data {
      padding: 2rem;
    }
  }

  .gist-file {
    border: none !important;
  }

  @media screen and (min-width:40em) {
    .gist-file {
      margin-bottom: 2rem !important;
    }
  }

  .gist-meta {
    display: none;
  }

  .highlight {
    background-color: #272727 !important;
  }

  .pl-c {
    color: #878787 !important;
  }

  .pl-c1 {
    color: #00bcd4 !important;
  }

  .pl-e, 
  .pl-en, 
  .pl-ent, 
  .pl-pse {
    color: #ff665e !important;
  }

  .pl-pds, 
  .pl-s {
    color: #4caf50 !important;
  }

  .pl-id, 
  .pl-smi, 
  .pl-v {
    color: #f44336 !important;
  }

  .pl-k {
    color: #ff9800 !important;
  }
}
            
          
!
            
              // Toggles between the default and customized Gist syntax highlighting

$('.customize').on('click', function(e) {
  e.preventDefault();
  $('.default').toggleClass('customized');
  $('h2 span').text(function(i, text) {
    return text === 'Default' ? 'Custom' : 'Default';
  })
});
            
          
!
999px
Loading ..................

Console