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.


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.



// PHP script to obfuscate email addresses
// Results look something like the a tag below..
function obfuscate_email_address ( $ArgEmailAddress ) {

  // Create 4 junk characters to add to the start and end of the string
	$JunkStart = substr(md5(microtime()),rand(0,26),4);
	$JunkEnd = substr(md5(microtime()),rand(0,26),4);

	// Create full email to be used
	$FullEmail = $JunkStart . $ArgEmailAddress . $JunkEnd;

	// Rotate the string by 13 characters (before reversing it)
	echo str_rot13( strrev ($FullEmail) );


<a href="#" class="obfema" data-obfema="[email protected]">[email protected]<a/>





                // Used to unobfuscate email address
function UnObfuEmail(Class) {
  // Get the data value
  var EmailString = $(Class).attr("data-obfema");

  // Reverse the string
  EmailString = EmailString.split("").reverse().join("")

  // Eliminate junk characters
  EmailString = EmailString.substr(4).slice(0,-4);

  // Unobfuscate the value
  var EmailString = EmailString.replace(/[a-zA-Z]/g, function(c) {
    return String.fromCharCode(
      (c <= "Z" ? 90 : 122) >= (c = c.charCodeAt(0) + 13) ? c : c - 26

  // Add href attribute
  $(Class).attr("href", "mailto:" + EmailString);

  // Insert the string so it can be read