function findElementsToHighlight(opts)
{
  var elements = getElementsByTagName(opts['tagName']),
      scripts,
      i
      ;

  // support for <SCRIPT TYPE="syntaxhighlighter" /> feature
  if(opts['useScriptTags'])
  {
    scripts = getElementsByTagName('script');

    for (i = 0; i < scripts.length; i++)
    {
      if (scripts[i].type.match(/^(text\/)?syntaxhighlighter$/))
        elements.push(scripts[i]);
    }
  }

  return elements;
}
Finds all elements on the page which could be processes by SyntaxHighlighter.