My Modifications to jQuery linkify (by maranomynet)

Based on original work by marnomynet on GitHub: https://github.com/maranomynet/linkify

HTML

<div id="example">
    link = http://jsfiddle.net/terryyounghk/VAZPt/p={10} akshay

</div>

CSS

html, body { width: 100%; height: 100%; font-family: Consolas, Arial; font-size: 1em; line-height: 1.5em; }

#example { border: 0; margin: 0; padding: 10px; }

a, a:visited { font-size: 0.9em; padding: 2px 3px; background-repeat: no-repeat; background-position: 3px 1px; padding-left: 22px; border-radius: 8px; }

a.http,
a.http:visited {
    color: darkgreen;
    background-color: #F0F7EF;
    text-decoration: none;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAMtSURBVDjLVZNLa1xlAIafc5szk8xkMkkm5MKY2EpT2qa2MTVCmoLS2gq6EKooimAW7iQb/0I2bgTRIog0oFW7KQpCS7VqrSmmJGlSQtswqWlLLmbGmcmcZM6cy/edz00r6bt8eXh4N6+mlGJnxiZHR4APgSNAFjCBKjClInXm05Gzl3by2mPB2OSoCUwAp1/LHbcziSyO24gbgJAegg2urF8UUsifhZBvfvXK99v/C8YmRy3gt8G2/cMv517E8Wx8ApYcjZiyKbkRSgQkcFn3rzG9Nn1LhOLYt2/8UNUfLZkYaN0zfLRrkLIMCHUNIXTqIoZLjLJvU/ASrFQtnko+z2BH38HAD78DMConHh4FPn5nz6vGgqyxTp16JNj2kpR9C8eD/OoW1VoNO1NCS+d5oW0vV27f2PX11MS8MTR6+JOTXUMHNCPBui5AtdMpk8xsGNQ9ndur20TxCnbPIn5TnmJUwaxIDrTm9Jn7d1tM4EiuqZs5d41iXGefsZsIwYNCgOfVSXconJbLLEWb4CuahU2+6HO8d4DQF/0m0NpgNvLAXaPgu6QadrEZpKhUItJZj/aMS1EewvHnsdUWW/+WKG82kEykCAPRbCqlNE1B4DsocpiW5OJfIVoiyfqSQFdNdGXrpLZGcFZDPKYJg2VQCiGEZkoRlZ3A6W41mknFn2WlaOKFFrG4Tbw9wb2/S3g3miHySLdbNDd2kzYKVGpVpIiqugjF7P3yQ55pyLFWmCSyVokZPqHnEoYmsWQGuyWOGdexNIkRFOnqbGN5bRngjh4G4rMLd6+KnmQW012lWrpOJuNjCh9LU9i6gRkEZHIrpNv/QK8vcijXz5lfLijgS+PmuYV75+fPDXr1Wt9znfsouy5x+2miuoltW1iawBJV0o0/wT8lBvbv5WZ+gaWNlasz43MfmQChH777e37uT78eHDx5+BiLBROjqhDaFmGkQ1KS6+mlr7+XX2evc+nWVB54+4kznfr8pZQIxXkRyhPvDb9vIjtQqgFN12hLO2yUZ/ni8o8SuAa8NTM+t/GE4HGGx4del0J+IGXUH8ko86iuAneAszPjc9/s5P8DuO6ZcsXuRqAAAAAASUVORK5CYII=');
}

a.ftp,
a.ftp:visited {
    color: brown;
    background-color: #F9F7F2;
    background-image:...

JavaScript

/**
 * Modifications by Terry Young ( terryyounghk [at] gmail [dot] com )
 *
 * ##1:  Further breaking down httpOrMailtoUrl to httptoUrl, ftptoUrl and mailtoUrl
 * ##2:  Added options to define CSS class names for httptoUrl, ftptoUrl and mailtoUrl
 * ##3:  Minor fixes to the regular expressions which did not convert URLs correctly if multiple links appear on the same line
 *
 * Changes in code are denoted with ##N.
 * Original comments below. Scroll to the bottom for example usage code in the demo.
 */

/* encoding: utf-8

**** linkify plugin for jQuery - automatically finds and changes URLs in text content into proper hyperlinks ****

Version: 1.0

Copyright (c) 2009
Már Örlygsson (http://mar.anomy.net/) &
Hugsmiðjan ehf. (http://www.hugsmidjan.is)

Dual licensed under a MIT licence (http://en.wikipedia.org/wiki/MIT_License)
and GPL 2.0 or above (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html).

-----------------------------------------------------------------------------

Demo and Qunit-tests:
* <./jquery.linkify-1.0-demo.html>
* <./jquery.linkify-1.0-test.html>

Documentation:
* ...

Get updates from:
* <http://github.com/maranomynet/linkify/>
* <git://github.com/maranomynet/linkify.git>

-----------------------------------------------------------------------------

Requires:
* jQuery (1.2.6 or later)

Usage:

jQuery('.articlebody').linkify();

// adding plugins:
jQuery.extend( jQuery.fn.linkify.plugins, {
name1: {
re: RegExp
tmpl: String/Function
},
name2: function(html){ return html; }
});

// Uses all plugins by default:
jQuery('.articlebody').linkify();

// Use only certain plugins:
jQuery('.articlebody').linkify( 'name1,name2' );
jQuery('.articlebody').linkify({ use: 'name1,name2' });
jQuery('.articlebody').linkify({ use: ['name1','name2'] });

// Explicitly use all plugins:
jQuery('.articlebody').linkify('*');
jQuery('.articlebody').linkify({ use: '*' });
jQuery('.articlebody').linkify({ use: ['*'] });

// Use no...