<link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/default.min.css" id="code-style" rel="stylesheet">
<link title="Default-Code" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/default.min.css" rel="alternate stylesheet">
<link title="Dark" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/dark.min.css" rel="alternate stylesheet">
<link title="FAR" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/far.min.css" rel="alternate stylesheet">
<link title="IDEA" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/idea.min.css" rel="alternate stylesheet">
<link title="Sunburst" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/sunburst.min.css" rel="alternate stylesheet">
<link title="Zenburn" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/zenburn.min.css" rel="alternate stylesheet">
<link title="Visual Studio" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/vs.min.css" rel="alternate stylesheet">
<link title="Ascetic" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/ascetic.min.css" rel="alternate stylesheet">
<link title="Magula" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/magula.min.css" rel="alternate stylesheet">
<link title="GitHub" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/github.min.css" rel="alternate stylesheet">
<link title="Google Code" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/googlecode.min.css" rel="alternate stylesheet">
<link title="Brown Paper" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/brown_paper.min.css" rel="alternate stylesheet">
<link title="School Book" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/school_book.min.css" rel="alternate stylesheet">
<link title="IR Black" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/ir_black.min.css" rel="alternate stylesheet">
<link title="Solarized - Dark" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/solarized_dark.min.css" rel="alternate stylesheet">
<link title="Solarized - Light" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/solarized_light.min.css" rel="alternate stylesheet">
<link title="Arta" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/arta.min.css" rel="alternate stylesheet">
<link title="Monokai" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/monokai.min.css" rel="alternate stylesheet">
<link title="XCode" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/xcode.min.css" rel="alternate stylesheet">
<link title="Pojoaque" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/pojoaque.min.css" rel="alternate stylesheet">
<link title="Rainbow" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/rainbow.min.css" rel="alternate stylesheet">
<link title="Tomorrow" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/tomorrow.min.css" rel="alternate stylesheet">
<link title="Tomorrow Night" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/tomorrow-night.min.css" rel="alternate stylesheet">
<link title="Tomorrow Night Bright" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/tomorrow-night-bright.min.css" rel="alternate stylesheet">
<link title="Tomorrow Night Blue" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/tomorrow-night-blue.min.css" rel="alternate stylesheet">
<link title="Tomorrow Night Eighties" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3/styles/tomorrow-night-eighties.min.css" rel="alternate stylesheet">

<script>
$(function() {
    $('#bottom-navbar').append(
    '<ul class="nav navbar-nav">\
      <li class="dropdown">\
        <a class="dropdown-toggle" role="button" data-toggle="dropdown" href="#">Code Style</a>\
        <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">\
          <li class="active"><a class="code-style-switch" title="Default-Code" href="#">Default</a></li>\
          <li><a class="code-style-switch" title="Dark" href="#"                       >Dark</a></li>\
          <li><a class="code-style-switch" title="FAR" href="#"                        >FAR</a></li>\
          <li><a class="code-style-switch" title="IDEA" href="#"                       >IDEA</a></li>\
          <li><a class="code-style-switch" title="Sunburst" href="#"                   >Sunburst</a></li>\
          <li><a class="code-style-switch" title="Zenburn" href="#"                    >Zenburn</a></li>\
          <li><a class="code-style-switch" title="Visual Studio" href="#"              >Visual Studio</a></li>\
          <li><a class="code-style-switch" title="Ascetic" href="#"                    >Ascetic</a></li>\
          <li><a class="code-style-switch" title="Magula" href="#"                     >Magula</a></li>\
          <li><a class="code-style-switch" title="GitHub" href="#"                     >GitHub</a></li>\
          <li><a class="code-style-switch" title="Google Code" href="#"                >Google Code</a></li>\
          <li><a class="code-style-switch" title="Brown Paper" href="#"                >Brown Paper</a></li>\
          <li><a class="code-style-switch" title="School Book" href="#"                >School Book</a></li>\
          <li><a class="code-style-switch" title="IR Black" href="#"                   >IR Black</a></li>\
          <li><a class="code-style-switch" title="Solarized - Dark" href="#"           >Solarized - Dark</a></li>\
          <li><a class="code-style-switch" title="Solarized - Light" href="#"          >Solarized - Light</a></li>\
          <li><a class="code-style-switch" title="Arta" href="#"                       >Arta</a></li>\
          <li><a class="code-style-switch" title="Monokai" href="#"                    >Monokai</a></li>\
          <li><a class="code-style-switch" title="XCode" href="#"                      >XCode</a></li>\
          <li><a class="code-style-switch" title="Pojoaque" href="#"                   >Pojoaque</a></li>\
          <li><a class="code-style-switch" title="Rainbow" href="#"                    >Rainbow</a></li>\
          <li><a class="code-style-switch" title="Tomorrow" href="#"                   >Tomorrow</a></li>\
          <li><a class="code-style-switch" title="Tomorrow Night" href="#"             >Tomorrow Night</a></li>\
          <li><a class="code-style-switch" title="Tomorrow Night Bright" href="#"      >Tomorrow Night Bright</a></li>\
          <li><a class="code-style-switch" title="Tomorrow Night Blue" href="#"        >Tomorrow Night Blue</a></li>\
          <li><a class="code-style-switch" title="Tomorrow Night Eighties" href="#"    >Tomorrow Night Eighties</a></li>\
        </ul>\
      </li>\
    </ul>');
    $('.code-style-switch').click(function(){
      var css = $('link[title="' + $(this).attr('title') + '"]');
      $('#code-style[rel=stylesheet]').attr('href', css.attr('href'));
      $('.code-style-switch').closest('li').removeClass('active');
      $(this).closest('li').addClass('active');
      return false;
    });
});
</script>
