Skip to content
A plugin which helps on highlighting the white spaces in a html/text snippet.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
example.html
jquery-1.4.2.min.js
jquery.whitespaceHighlight.css
jquery.whitespaceHighlight.js

README.md

Whitespace Highlighting JQuery

About

A jquery plugin which helps on highlighting whitespaces in a text/html snippet.

Highlights whitespace characters in one or more selected DOM element. By default it will highlight newlines, 2 or more sequential spaces and other individual whitespace chars, such as tab.

How to install

Copy the .js file in your javascript media folder. In the of the html files you want to use it, provide the following tag: <script type="text/javascript" src="js/jquery.whitespaceHighlight.js"></script> Copy the .css file in your css folder. Provide a tag to link to your css code:

How to run

Just select the DOM elements which will be "whitespace-highlighted" and run the 'whitespaceHighlight()' function: $('div').whitespaceHighlight();

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.