•  

     

    http://codepen.io/arlinadesign/pen/xboQQb

    <div id="wrapper">
    <pre class="code code-html"><label>HTML</label><code>C&oacute;digo, texto HML</code></pre>
    <pre class="code code-css"><label>CSS</label><code>C&oacute;digo, texto CSS</code></pre>
    <pre class="code code-javascript"><label>JS</label><code>C&oacute;digo, texto JS</code></pre>
    <pre class="code code-jquery"><label>Jquery</label><code>C&oacute;digo, texto Jquery</code></pre></div>
    <style type="text/css"><!--
    body {
    background:#fff;
    padding:0;
    margin:0;
    }

    #wrapper {
    padding:5%;
    margin:0 auto;
    }

    /* CSS Simple Pre Code */
    pre {
    background: #fff;
    white-space: pre;
    word-wrap: break-word;
    overflow: auto;
    }

    pre.code {
    margin: 20px 25px;
    border-radius: 4px;
    border: 1px dotted #292929;
    position: relative;
    }

    pre.code label {
    font-family:Edwardian Script ITC;
    font-weight: bold;
    font-size: 17px;
    color: #000;
    position: absolute;
    left: 1px;
    top: 15px;
    text-align: center;
    width: 50px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    }

    pre.code code {
    font-family: "Edwardian Script ITC","Monaco","Consolas","Andale Mono","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
    display: block;
    margin: 0 0 0 60px;
    padding: 15px 16px 14px;
    border-left: 1px solid #555;
    overflow-x: auto;
    font-size: 27px;
    line-height: 26px;
    color: #ddd;
    }

    pre::after {
    content: "double click to selection";
    padding: 0;
    width: auto;
    height: auto;
    position: absolute;
    right: 18px;
    top: 14px;
    font-family:Edwardian Script ITC;
    font-size: 22px;
    color: #000;
    line-height: 20px;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    transition: all 0.3s ease;
    }

    pre:hover::after {
    opacity: 0;
    visibility: visible;
    }

    pre.code-css code {
    color: #1013B1;
    }

    pre.code-html code {
    color: #0F62B0;
    }

    pre.code-javascript code {
    color: #0FAEAB;
    }

    pre.code-jquery code {
    color: #AE0F61;
    }
    --></style>
    Código, texto JS
    Código, texto JS
    Código, texto Jquery
    Código, texto Jquery