示例#1
0
 internal void UpdateSyntaxHighlights(IEditorFormatMap formatMap)
 {
     System.Diagnostics.Trace.Assert(formatMap != null, "format map is null");
     Interface     = formatMap.GetBrush(Constants.CodeInterfaceName);
     Class         = formatMap.GetBrush(Constants.CodeClassName);
     Text          = formatMap.GetBrush(Constants.CodeString);
     Enum          = formatMap.GetBrush(Constants.CodeEnumName);
     Delegate      = formatMap.GetBrush(Constants.CodeDelegateName);
     Number        = formatMap.GetBrush(Constants.CodeNumber);
     Struct        = formatMap.GetBrush(Constants.CodeStructName);
     Keyword       = formatMap.GetBrush(Constants.CodeKeyword);
     Namespace     = formatMap.GetBrush(Constants.CSharpNamespaceName);
     Method        = formatMap.GetBrush(Constants.CSharpMethodName);
     Parameter     = formatMap.GetBrush(Constants.CSharpParameterName);
     TypeParameter = formatMap.GetBrush(Constants.CSharpTypeParameterName);
     Property      = formatMap.GetBrush(Constants.CSharpPropertyName);
     Field         = formatMap.GetBrush(Constants.CSharpFieldName);
     Const         = formatMap.GetBrush(Constants.CSharpConstFieldName);
     Local         = formatMap.GetBrush(Constants.CSharpLocalVariableName);
 }