change syntaxhighlightervisitor to use File and set effectivekey