Pen Settings



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


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


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.


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.



<p>من متنی عادی هستم</p>
<p class='example-color'>این متن فقط رنگش تغییر می‌کنه!</p>
<p class='example-background-color'>این متن رنگ متفاوتی در زمینه داره!</p>
<p class='example-background'>رنگ این متن هم فرق می‌کنه! سلکت کن!</p>
<p class='example-both'>حالا این یکی!</p>
<p class='example-shadow'>متن سایه دار چطور؟ امتحان کن!</p>
<p class='example-background-color'>
در یک خط دو استایل متفاوت!
  <span class='example-color'>بازم در یک خط هستیم!</span>
<input class='example-input' type='text' value='متن داخل input-text'>
<textarea class='example-textarea' cols='30' name='' rows='5'>حتی متن داخل textarea</textarea>


                body {
.example-color::selection {
  color: #8e44ad;
.example-background-color::selection {
  background-color: #f1c40f;
.example-background::selection {
  background: #e74c3c;
.example-both::selection {
  background-color: #8e44ad;
  color: white;
.example-shadow::selection {
  text-shadow: 1px 1px 0 #27ae60;
.example-input::selection {
  background: #2ecc71;
.example-textarea::selection {
  background: #34495e;
  color: white;
body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  line-height: 1.45;
  background: #E0DCCC;
  color: #333;
  padding: 1em;
  font-size: 18px;

p,input,textarea  {
  margin-bottom: 1em;
input,textarea {
  display: block;
  font-size: 1em;
  font-family: inherit;