Before/after jQuery highlighter
Here's your code, and I've pointed out some potential problems:

for(needle in needles)
    if (haystack.indexOf(needles[needle]) &gt;= 0)
        return true;


While this is possible, I suggest you use {} instead. This avoids ambiguity, and future danger, especially when you'll be adding more functionality beyond just a single line.

Additionally, for-in runs over prototype properties. If you happen to have a property that is similarly named as a native property in the prototype, you'll be in trouble. To avoid that, check using hasOwnProperty before proceeding with the code.

$(document).ready(function() {


Probably not better, but there's a shorthand for this: $(function(){...})

$("[data-from]").each(function(i, e) {


I'd probably avoid using attribute selectors. They're known to be slow, depending on the parser implementation. I suggest you stick to classes.

froms = $e.data("from").toString().split(/\s+/); // must do toString in case 


A shorthand to convert stuff to string is to do '' + to it. Not so verbose, but it's somewhat elegant and short.