static QuerySyntaxTextBlock()
 {
     Language      = SyntaxEditorHelper.LoadLanguageDefinitionFromResourceStream("RavenQuery.langdef");
     FieldBrush    = new SolidColorBrush(Color.FromArgb(0xff, 0x00, 0x00, 0xcd));
     OperatorBrush = new SolidColorBrush(Color.FromArgb(255, 137, 137, 137));
     ValueBrush    = new SolidColorBrush(Colors.Black);
 }
Exemplo n.º 2
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////
        // OBJECT
        /////////////////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Initializes a new instance of the <c>CustomSyntaxLanguage</c> class.
        /// </summary>
        public CustomSyntaxLanguage()
            : base("CustomDecorator")
        {
            // Initialize this language from a language definition
            SyntaxEditorHelper.InitializeLanguageFromResourceStream(this, "JScript.langdef");

            // Register a tagger provider on the language as a service that can create CustomTag objects
            this.RegisterService(new TextViewTaggerProvider <WordHighlightTagger>(typeof(WordHighlightTagger)));
        }
Exemplo n.º 3
0
 static XamlEditor()
 {
     DefaultLanguage = SyntaxEditorHelper.LoadLanguageDefinitionFromResourceStream("Xaml.langdef");
 }
Exemplo n.º 4
0
 static LinqEditor()
 {
     DefaultLanguage = SyntaxEditorHelper.LoadLanguageDefinitionFromResourceStream("CSharp.langdef");
 }
Exemplo n.º 5
0
 static JsonEditor()
 {
     DefaultLanguage = SyntaxEditorHelper.LoadLanguageDefinitionFromResourceStream("JScript.langdef");
 }
Exemplo n.º 6
0
 static QueryEditor()
 {
     DefaultLanguage = SyntaxEditorHelper.LoadLanguageDefinitionFromResourceStream("RavenQuery.langdef");
 }