Thread:Extension talk:Lingo/Looking for a tips when Lingo interferes with some JavaScript (different from NOGLOSSARY and class=noglossary)/reply

Hi,

your second idea seems to be the best choice here. Did not test, but adding the syntaxhighlighter class to the XPath query should work. Try replacing the query in LingoParser.php (around line 167) with

"//*[not(ancestor-or-self::*[@class='noglossary'] or ancestor-or-self::*[@class='syntaxhighlighter'] or ancestor-or-self::a)][text!=' ']/text"

Executing Lingo after SyntaxHighlight is not possible as, as you noticed, SyntaxHighlight is based on JavaScript.

Cheers,