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.


                <div class="container">
  <h2><a href="" target="_blank">jcOnPageFilter</a> demo</h2>
  <div class="panel panel-default">
    <div class="panel-heading">
        <div class="form-group">
          <label for="keyword">Search term:</label>
          <input type="text" class="form-control input-sm" placeholder="Lorem" name="keyword" id="keyword">
    <div class="panel-body context">
      <div class="jcorgFilterTextParent">
        <h3>This is header 1</h3>
        <div class="jcorgFilterTextChild">Hac magnis? Ac dignissim nec! Phasellus aliquet magnis nisi, cursus. </div>
      <div class="jcorgFilterTextParent">
        <h3>This is header 2</h3>
        <div class="jcorgFilterTextChild">blah blah blah blah blah blah blah blah blah blah </div>
      <div class="jcorgFilterTextParent">
        <h3>This is header 3</h3>
        <div class="jcorgFilterTextChild">Lorem ipsum dolor sit</div>
      <div class="jcorgFilterTextParent">
        <h3>This is header 4</h3>
        <div class="jcorgFilterTextChild">consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et</div>
    <div class="panel-footer">This example is part of the article <a href="" target="_blank">10 jQuery Text Highlighter Plugins</a> on <a href="" target="_blank">SitePoint</a> by <a href=""
        target="_blank">Julian Motz</a>.</div>


                .context .jcorgFilterTextParent h3 {
  margin-top: 0;

.context .jcorgFilterTextParent {
  padding: 10px 0;

.context .jcorgFilterTextParent:not(:last-child) {
  border-bottom: 1px dashed #bdc3c7;

 * The following is not related to the plugin
body {
  background: #fbfcfc;

.container {
  max-width: 700px;

.form-group {
  margin-bottom: 5px;

.form-group:last-child {
  margin-bottom: 0;

.form-group label {
  display: block;


                $(function() {
  var $form = $("form");
  var $input = $form.find("input[name='keyword']");
    animateHideNShow: true,
    focusOnLoad: false,
    highlightColor: "yellow",
    textColorForHighlights: "#000000",
    caseSensitive: false,
    hideNegatives: true,
    parentLookupClass: "jcorgFilterTextParent",
    childBlockClass: "jcorgFilterTextChild"