示例#1
0
 static DefaultStyleSheet()
 {
     styles = new StyleDictionary
     {
         new Style(ScopeName.PlainText)
         {
             Foreground = Colors.Black,
             Background = Colors.White
         },
         new Style(ScopeName.HtmlServerSideScript)
         {
             Background = Colors.Yellow
         },
         new Style(ScopeName.HtmlComment)
         {
             Foreground = Colors.Green
         },
         new Style(ScopeName.HtmlTagDelimiter)
         {
             Foreground = Colors.Blue
         },
         new Style(ScopeName.HtmlElementName)
         {
             Foreground = DullRed
         },
         new Style(ScopeName.HtmlAttributeName)
         {
             Foreground = Colors.Red
         },
         new Style(ScopeName.HtmlAttributeValue)
         {
             Foreground = Colors.Blue
         },
         new Style(ScopeName.HtmlOperator)
         {
             Foreground = Colors.Blue
         },
         new Style(ScopeName.Comment)
         {
             Foreground = Colors.Green
         },
         new Style(ScopeName.XmlDocTag)
         {
             Foreground = Colors.Gray
         },
         new Style(ScopeName.XmlDocComment)
         {
             Foreground = Colors.Green
         },
         new Style(ScopeName.String)
         {
             Foreground = DullRed
         },
         new Style(ScopeName.StringCSharpVerbatim)
         {
             Foreground = DullRed
         },
         new Style(ScopeName.Keyword)
         {
             Foreground = Colors.Blue
         },
         new Style(ScopeName.PreprocessorKeyword)
         {
             Foreground = Colors.Blue
         },
         new Style(ScopeName.HtmlEntity)
         {
             Foreground = Colors.Red
         },
         new Style(ScopeName.XmlAttribute)
         {
             Foreground = Colors.Red
         },
         new Style(ScopeName.XmlAttributeQuotes)
         {
             Foreground = Colors.Black
         },
         new Style(ScopeName.XmlAttributeValue)
         {
             Foreground = Colors.Blue
         },
         new Style(ScopeName.XmlCDataSection)
         {
             Foreground = Colors.Gray
         },
         new Style(ScopeName.XmlComment)
         {
             Foreground = Colors.Green
         },
         new Style(ScopeName.XmlDelimiter)
         {
             Foreground = Colors.Blue
         },
         new Style(ScopeName.XmlName)
         {
             Foreground = DullRed
         },
         new Style(ScopeName.ClassName)
         {
             Foreground = Colors.Cyan, // .MediumTurquoise
         },
         new Style(ScopeName.CssSelector)
         {
             Foreground = DullRed
         },
         new Style(ScopeName.CssPropertyName)
         {
             Foreground = Colors.Red
         },
         new Style(ScopeName.CssPropertyValue)
         {
             Foreground = Colors.Blue
         },
         new Style(ScopeName.SqlSystemFunction)
         {
             Foreground = Colors.Magenta
         },
     };
 }
示例#2
0
        static ILCodeStyleSheet()
        {
            styles = new StyleDictionary
            {
                new Style(ScopeName.PlainText)
                {
                    Foreground = Colors.Black,
                    Background = Colors.White
                },
                //new Style(ScopeName.HtmlServerSideScript)
                //    {
                //        Background = Colors.Yellow
                //    },
                //new Style(ScopeName.HtmlComment)
                //    {
                //        Foreground = Colors.Green
                //    },
                //new Style(ScopeName.HtmlTagDelimiter)
                //    {
                //        Foreground = Colors.Blue
                //    },
                //new Style(ScopeName.HtmlElementName)
                //    {
                //        Foreground = DullRed
                //    },
                //new Style(ScopeName.HtmlAttributeName)
                //    {
                //        Foreground = Colors.Red
                //    },
                //new Style(ScopeName.HtmlAttributeValue)
                //    {
                //        Foreground = Colors.Blue
                //    },
                //new Style(ScopeName.HtmlOperator)
                //    {
                //        Foreground = Colors.Blue
                //    },
                new Style(ScopeName.Comment)
                {
                    Foreground = Colors.Green
                },
                //new Style(ScopeName.XmlDocTag)
                //    {
                //        Foreground = Colors.Gray
                //    },
                //new Style(ScopeName.XmlDocComment)
                //    {
                //        Foreground = Colors.Green
                //    },
                //new Style(ScopeName.String)
                //    {
                //        Foreground = DullRed
                //    },
                //new Style(ScopeName.StringCSharpVerbatim)
                //    {
                //        Foreground = DullRed
                //    },
                //new Style(ScopeName.PreprocessorKeyword)
                //    {
                //        Foreground = Colors.Blue
                //    },
                //new Style(ScopeName.HtmlEntity)
                //    {
                //        Foreground = Colors.Red
                //    },
                //new Style(ScopeName.XmlAttribute)
                //    {
                //        Foreground = Colors.Red
                //    },
                //new Style(ScopeName.XmlAttributeQuotes)
                //    {
                //        Foreground = Colors.Black
                //    },
                //new Style(ScopeName.XmlAttributeValue)
                //    {
                //        Foreground = Colors.Blue
                //    },
                //new Style(ScopeName.XmlCDataSection)
                //    {
                //        Foreground = Colors.Gray
                //    },
                //new Style(ScopeName.XmlComment)
                //    {
                //        Foreground = Colors.Green
                //    },
                //new Style(ScopeName.XmlDelimiter)
                //    {
                //        Foreground = Colors.Blue
                //    },
                //new Style(ScopeName.XmlName)
                //    {
                //        Foreground = DullRed
                //    },
                //new Style(ScopeName.ClassName)
                //    {
                //        Foreground = Colors.Cyan, // .MediumTurquoise
                //    },
                //new Style(ScopeName.CssSelector)
                //    {
                //        Foreground = DullRed
                //    },
                //new Style(ScopeName.CssPropertyName)
                //    {
                //        Foreground = Colors.Red
                //    },
                //new Style(ScopeName.CssPropertyValue)
                //    {
                //        Foreground = Colors.Blue
                //    },
                //new Style(ScopeName.SqlSystemFunction)
                //    {
                //        Foreground = Colors.Magenta
                //    },


                new Style(ScopeName.Keyword)
                {
                    Foreground = Colors.Blue
                },
                new Style(ScopeName.Instruction)
                {
                    Foreground = Colors.Green
                },
                new Style(ScopeName.Directive)
                {
                    Foreground = Colors.Blue
                },
                new Style(ScopeName.Security)
                {
                    Foreground = Colors.Red
                },
                //new Style(ScopeName.LineNumber)
                //    {
                //        FontWeight = FontWeights.Bold,
                //        Foreground = Colors.Black
                //    },
            };
        }