span-file-and-vars

JSM's File and Variable Names CSS

View the Project on GitHub jsmoriss/span-file-and-vars

JSM's File and Variable Names CSS

Plugin NameJSM's File and Variable Names CSS
SummarySearches for file, variable, and function names within the content and wraps them with a CSS class.
Stable Version1.0.3
Requires At LeastWordPress 3.8
Tested Up ToWordPress 5.2.1
Contributorsjsmoriss
LicenseGPLv3
Tags / Keywordspost, page, content, replace, filepath, filename, variable, function

Description

Searches for file names, folder paths, variable and function / method names within the content and comment text, and wraps them with a CSS class.

.spanfile,
.spanvar {
        font-family:"Vollkorn", Geneva, sans-serif;
        font-size:1em;
        letter-spacing:0.5px;
}
.spanvar {
        color:#3c3f07;
}
pre .spanfile,
pre .spanvar {
        font-family:"Courier", monospace;
        font-style:normal;
        color:#333;
}

Installation

Automated Install

  1. Go to the wp-admin/ section of your website.
  2. Select the Plugins menu item.
  3. Select the Add New sub-menu item.
  4. In the Search box, enter the plugin name.
  5. Click the Search Plugins button.
  6. Click the Install Now link for the plugin.
  7. Click the Activate Plugin link.

Semi-Automated Install

  1. Download the plugin ZIP file.
  2. Go to the wp-admin/ section of your website.
  3. Select the Plugins menu item.
  4. Select the Add New sub-menu item.
  5. Click on Upload link (just under the Install Plugins page title).
  6. Click the Browse... button.
  7. Navigate your local folders / directories and choose the ZIP file you downloaded previously.
  8. Click on the Install Now button.
  9. Click the Activate Plugin link.

Frequently Asked Questions