Ejemplo n.º 1
0
        public override void LoadSettingsFromStorage()
        {
            var rainbowSettings = SettingsContext.GetService <IRainbowSettings>();

            RainbowDepth           = rainbowSettings.RainbowDepth;
            RainbowTagsEnabled     = rainbowSettings.RainbowTagsEnabled;
            RainbowColorize        = rainbowSettings.RainbowColorize;
            RainbowHighlightMode   = rainbowSettings.RainbowHighlightMode;
            RainbowToolTipsEnabled = rainbowSettings.RainbowToolTipsEnabled;
            RainbowColoringMode    = rainbowSettings.RainbowColoringMode;
            RainbowHighlightKey    = rainbowSettings.RainbowHighlightKey;
            RainbowLinesEnabled    = rainbowSettings.RainbowLinesEnabled;
            RainbowLinesMode       = rainbowSettings.RainbowLinesMode;

            this.colors = new ClassificationList(new ColorStorage(this.Site));
            this.colors.Load(
                Rainbows.Rainbow1,
                Rainbows.Rainbow2,
                Rainbows.Rainbow3,
                Rainbows.Rainbow4,
                Rainbows.Rainbow5,
                Rainbows.Rainbow6,
                Rainbows.Rainbow7,
                Rainbows.Rainbow8,
                Rainbows.Rainbow9,
                Rainbows.RainbowError,
                Rainbows.TipHilight
                );
        }
Ejemplo n.º 2
0
        public override void LoadSettingsFromStorage()
        {
            var settings = SettingsContext.GetSettings();

            CurrentLineHighlightEnabled   = settings.CurrentLineHighlightEnabled;
            CurrentColumnHighlightEnabled = settings.CurrentColumnHighlightEnabled;
            CurrentColumnHighlightStyle   = settings.CurrentColumnHighlightStyle;
            this.highlightLineWidth       = settings.HighlightLineWidth;
            KeywordClassifierEnabled      = settings.KeywordClassifierEnabled;
            FlowControlKeywordsEnabled    = settings.FlowControlKeywordsEnabled;
            VisibilityKeywordsEnabled     = settings.VisibilityKeywordsEnabled;
            QueryKeywordsEnabled          = settings.QueryKeywordsEnabled;
            FlowControlUseItalics         = settings.FlowControlUseItalics;
            EscapeSeqHighlightEnabled     = settings.EscapeSequencesEnabled;
            DevMarginEnabled     = settings.DeveloperMarginEnabled;
            AutoExpandRegions    = settings.AutoExpandRegions;
            BoldAsItalicsEnabled = settings.BoldAsItalicsEnabled;
            ModelinesEnabled     = settings.ModelinesEnabled;
            ModelinesNumLines    = (uint)settings.ModelinesNumLines;
            TelemetryEnabled     = settings.TelemetryEnabled;

            this.colors = new ClassificationList(new ColorStorage(this.Site));
            this.colors.Load(
                Constants.LINE_HIGHLIGHT,
                Constants.COLUMN_HIGHLIGHT,
                Constants.FLOW_CONTROL_CLASSIF_NAME,
                Constants.LINQ_CLASSIF_NAME,
                Constants.VISIBILITY_CLASSIF_NAME,
                Constants.STRING_ESCAPE_CLASSIF_NAME,
                Constants.FORMAT_SPECIFIER_NAME
                );
        }
Ejemplo n.º 3
0
        private ClassificationList GetClassifications()
        {
            ClassificationList list = new ClassificationList(new ColorStorage(this.Site));

            list.Load(
                typeof(CodeClassificationDefinitions),
                typeof(RainbowClassifications),
                typeof(XmlClassificationDefinitions)
                );
            return(list);
        }
Ejemplo n.º 4
0
        public override void LoadSettingsFromStorage()
        {
            var settings = SettingsContext.GetService <IXmlSettings>();

            XmlnsPrefixHighlightEnabled = settings.XmlnsPrefixEnabled;
            XmlCloseTagHighlightEnabled = settings.XmlCloseTagEnabled;
            XmlMatchTagsEnabled         = settings.XmlMatchTagsEnabled;

            colors = new ClassificationList(new ColorStorage(this.Site));
            colors.Load(
                XmlConstants.XML_PREFIX,
                XmlConstants.XML_CLOSING,
                XmlConstants.XML_CLOSING_PREFIX,
                XmlConstants.RAZOR_CLOSING
                );
        }
Ejemplo n.º 5
0
        public override void LoadSettingsFromStorage()
        {
            var rainbowSettings = SettingsContext.GetSpecificSettings<IRainbowSettings>();

              RainbowDepth = rainbowSettings.RainbowDepth;
              RainbowTagsEnabled = rainbowSettings.RainbowTagsEnabled;
              RainbowHighlightMode = rainbowSettings.RainbowHighlightMode;
              RainbowToolTipsEnabled = rainbowSettings.RainbowToolTipsEnabled;
              RainbowColoringMode = rainbowSettings.RainbowColoringMode;

              this.colors = new ClassificationList(new ColorStorage(this.Site));
              colors.Load(
            Rainbows.Rainbow1,
            Rainbows.Rainbow2,
            Rainbows.Rainbow3,
            Rainbows.Rainbow4,
            Rainbows.Rainbow5,
            Rainbows.Rainbow6,
            Rainbows.Rainbow7,
            Rainbows.Rainbow8,
            Rainbows.Rainbow9,
            Rainbows.RainbowError,
            Rainbows.TipHilight
            );
        }
Ejemplo n.º 6
0
        public override void LoadSettingsFromStorage()
        {
            var settings = SettingsContext.GetSpecificSettings<IXmlSettings>();
              XmlnsPrefixHighlightEnabled = settings.XmlnsPrefixEnabled;
              XmlCloseTagHighlightEnabled = settings.XmlCloseTagEnabled;
              XmlMatchTagsEnabled = settings.XmlMatchTagsEnabled;

              colors = new ClassificationList(new ColorStorage(this.Site));
              colors.Load(
            XmlConstants.XML_PREFIX,
            XmlConstants.XML_CLOSING,
            XmlConstants.XML_CLOSING_PREFIX,
            XmlConstants.RAZOR_CLOSING
            );
        }
Ejemplo n.º 7
0
        public override void LoadSettingsFromStorage()
        {
            var settings = SettingsContext.GetSettings();

              CurrentLineHighlightEnabled = settings.CurrentLineHighlightEnabled;
              CurrentColumnHighlightEnabled = settings.CurrentColumnHighlightEnabled;
              highlightLineWidth = settings.HighlightLineWidth;
              KeywordClassifierEnabled = settings.KeywordClassifierEnabled;
              FlowControlUseItalics = settings.FlowControlUseItalics;
              EscapeSeqHighlightEnabled = settings.EscapeSequencesEnabled;
              DevMarginEnabled = settings.DeveloperMarginEnabled;
              AutoExpandRegions = settings.AutoExpandRegions;
              BoldAsItalicsEnabled = settings.BoldAsItalicsEnabled;
              ModelinesEnabled = settings.ModelinesEnabled;
              ModelinesNumLines = (uint)settings.ModelinesNumLines;
              TelemetryEnabled = settings.TelemetryEnabled;

              this.colors = new ClassificationList(new ColorStorage(this.Site));
              colors.Load(
            Constants.COLUMN_HIGHLIGHT,
            Constants.LINE_HIGHLIGHT,
            Constants.KEYWORD_CLASSIF_NAME,
            Constants.LINQ_CLASSIF_NAME,
            Constants.VISIBILITY_CLASSIF_NAME,
            Constants.STRING_ESCAPE_CLASSIF_NAME,
            Constants.FORMAT_SPECIFIER_NAME
            );
        }