Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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.

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 dir='rtl' class="container">
  <h1>صندوق الاكواد بمميزات عديدة</h1>
<h3><a  href='http://blog.itheric.com/' target="_blank" > مقدم من مدونة الاثير </a></h3><br />
      <p>تستطيع نسخ الأكواد المضمنة داخل الصندوق عبر الضغط على زر " نسخ " 
         </br> و تستطيع ايضا تحديد الأكواد المضمنة عبر الضغط مرتين على الأكواد</p>  
<br />
<pre><code>/* Firefox */
html {
   <mark>scrollbar-width: none;</mark>
}

/* Webkit */
html::-webkit-scrollbar {
   display: none;
}</code></pre>
<br />
<pre><code>&lt;script type=&#39;text/javascript&#39;&gt;
//&lt;![CDATA[
//Stylesheet
function loadCSS(e, t, n) { &quot;use strict&quot;; var i = window.document.createElement(&quot;link&quot;); var o = t || window.document.getElementsByTagName(&quot;script&quot;)[0]; i.rel = &quot;stylesheet&quot;; i.href = e; i.media = &quot;only x&quot;; o.parentNode.insertBefore(i, o); setTimeout(function () { i.media = n || &quot;all&quot; }) }
loadCSS(&quot;https://fonts.googleapis.com/css?family=&#39;Cairo&#39;:400,500,700|&#39;Cairo&#39;+Mono:400,500,700&quot;);loadCSS(&quot;https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css&quot;);
//]]&gt;
&lt;/script&gt;</code></pre>
<br />
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html expr:dir=&#39;data:blog.languageDirection&#39; xmlns=&#39;http://www.w3.org/1999/xhtml&#39; xmlns:b=&#39;http://www.google.com/2005/gml/b&#39; xmlns:data=&#39;http://www.google.com/2005/gml/data&#39; xmlns:expr=&#39;http://www.google.com/2005/gml/expr&#39;&gt;
&lt;head&gt;
&lt;b:skin&gt;&lt;![CDATA[/*
-----------------------------------------------
year          : 2018
----------------------------------------------- */
]]&gt;&lt;/b:skin&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;b:section class=&#39;main&#39; id=&#39;main&#39; showaddelement=&#39;yes&#39;&gt;
&lt;b:widget id=&quot;Blog1&quot; locked=&quot;true&quot; type=&quot;Blog&quot; /&gt;
&lt;/b:section&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
</br> </br>
إن نظرة خاطفة نحو جرم سماوي يمكن أن تسمو بعقولنا وتنقيها كما تفعل نغمات الموسيقى المقدسة أو الصورة المهيبة أو بيت الشعر الذي يغنيه أعظم الشعراء. وهذا كله يعود بالنفع في النهاية
</div>

              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Cairo:400,600,700&display=swap&subset=arabic');
a,a:link,a:visited {color:#fff;text-decoration:none;transition:all .3s}
a:hover,a:hover:visited {color:#eee}
*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
body {
  background: #f5f5f5;
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  position: relative;
  line-height: normal;
}

.container {
  max-width: 900px;
  margin: 4% auto;
  padding: 30px;
  background: #fff;
  color: #666;
  text-align: right;
  font-size: 16px;
  line-height: 1.6;
  border-radius: 10px;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.03);
  overflow:hidden
}

.container h1,
.container h2 {
  display: block;
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  text-align: center;
}
.container h3 {
  text-align: center;
  color: #fff;
    padding:5px;
    border-radius: 4px;
    background: #3333e0;
}


.container input:hover,.container input:active {
  background:#d63031;
  color:#fff;
  outline:none
}
btn.copy-code-button {
    z-index: 2;
    position: absolute;
    font-size: 14px;
    padding: 4px 5px;
    border: none;
    color: #333 !important;
    background: #ffd012 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin: 15px;
  border-radius: 4px;
}
  pre{white-space:pre;word-wrap:normal;overflow:auto;font-size:14px;margin:0}
pre,code{-webkit-user-select:text;-khtml-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;direction:ltr;}
/* Highlighter */
 code{padding:1.2em} .hljs,code{display:block;overflow-y:hidden;overflow-x:hidden;padding:1.2em;background:#2b2b2c;color:#fff;line-height:1.5;text-align:left;word-spacing:0;font-family:monospace;border-radius:5px;max-height:350px} .hljs:hover, .hljs:focus ,code:hover, code:focus{overflow-y:auto;overflow-x:auto} .hljs-name, .hljs-strong{font-weight:500} .hljs-code, .hljs-emphasis{font-style:italic} .hljs-tag{color:#62c8f3} .hljs-variable, .hljs-template-variable, .hljs-selector-id, .hljs-selector-class{color:#ade5fc} .hljs-string, .hljs-bullet{color:#a2fca2} .hljs-type, .hljs-title, .hljs-section, .hljs-attribute, .hljs-quote, .hljs-built_in, .hljs-builtin-name{color:#ffa} .hljs-number, .hljs-symbol, .hljs-bullet{color:#d36363} .hljs-keyword, .hljs-selector-tag, .hljs-literal{color:#fcc28c} .hljs-comment, .hljs-deletion, .hljs-code{color:#888} .hljs-regexp, .hljs-link{color:#c6b4f0} .hljs-meta{color:#fc9b9b} .hljs-deletion{background-color:#fc9b9b;color:#333} .hljs-addition{background-color:#a2fca2;color:#333} .hljs a{color:inherit} .hljs a:focus, .hljs a:hover{color:inherit;text-decoration:underline}mark  .hljs-attr,mark  .hljs-string,mark  .hljs-bullet{background-color:#e67e22;color:#fff} .hljs mark{background-color:#f24a4a;color:#fff;padding:2px 5px;border-radius:2px}.BLOG_mobile_video_class{display:none!important} .hljs mark span.hljs-number, .hljs mark span.hljs-comment, .hljs mark span.hljs-symbol, .hljs mark span.hljs-string, .hljs mark span.hljs-attr, .hljs mark span.hljs-keyword, .hljs mark span.hljs-name, .hljs mark span.hljs-tag{color:#fff !important;margin:.15rem 0}
              
            
!

JS

              
                function addCopyButtons(e){document.querySelectorAll("pre > code").forEach(function(t){var n=document.createElement("btn");n.className="copy-code-button",n.type="btn",n.innerText="نسخ",n.addEventListener("click",function(){e.writeText(t.innerText).then(function(){n.blur(),n.innerText="تم النسخ",setTimeout(function(){n.innerText="نسخ"},2e3)},function(e){n.innerText="خطأ"})});var o=t.parentNode;if(o.parentNode.classList.contains("highlight")){var r=o.parentNode;r.parentNode.insertBefore(n,r)}else o.parentNode.insertBefore(n,o)})}if(navigator&&navigator.clipboard)addCopyButtons(navigator.clipboard);else{var script=document.createElement("script");script.src="https://cdnjs.cloudflare.com/ajax/libs/clipboard-polyfill/2.7.0/clipboard-polyfill.promise.js",script.integrity="sha256-waClS2re9NUbXRsryKoof+F9qc1gjjIhc2eT7ZbIv94=",script.crossOrigin="anonymous",script.onload=function(){addCopyButtons(clipboard)},document.body.appendChild(script)}

$('i[rel="pre"]').replaceWith(function(){return $("<pre><code>"+$(this).html()+"</code></pre>")});for(var pres=document.querySelectorAll("pre,code,kbd,blockquote,td"),i=0;i<pres.length;i++)pres[i].addEventListener("dblclick",function(){var e=getSelection(),t=document.createRange();t.selectNodeContents(this),e.removeAllRanges(),e.addRange(t)},!1);
function downloadJSAtOnload(){var e=document.createElement("script");e.src="https://cdn.jsdelivr.net/gh/MohammadQt/Itheric@master/highlightpro.js",document.body.appendChild(e)}window.addEventListener?window.addEventListener("load",downloadJSAtOnload,!1):window.attachEvent?window.attachEvent("onload",downloadJSAtOnload):window.onload=downloadJSAtOnload;
              
            
!
999px

Console