示例#1
0
            protected override string OnGetValue()
            {
                var style = base.OnGetValue();

                if (SyntaxHighlightingService.ContainsStyle(style))
                {
                    return(style);
                }

                var defaultStyle = SyntaxHighlightingService.GetDefaultColorStyleName();

                LoggingService.LogWarning("Highlighting Theme \"{0}\" not found, using default \"{1}\" instead", style, defaultStyle);
                Value = defaultStyle;
                return(SyntaxHighlightingService.GetDefaultColorStyleName());
            }