private bool ShouldHighlightEntireLine(IWpfTextViewLine line) { if (_contanedLanguageHandler != null) { return _contanedLanguageHandler.GetCodeBlockOfLocation(line.Start.Position) != null || _contanedLanguageHandler.GetCodeBlockOfLocation(line.End.Position) != null; } return false; }