예제 #1
0
 public EditorOptions()
 {
     FontFamily         = "Consolas";
     FontSize           = "10pt";
     FontOptions        = new FontOptions();
     CommentFontOptions = new FontOptions {
         TextColor = Colors.Green
     };
     TagFontOptions = new FontOptions {
         TextColor = Colors.Teal, Style = FontStyles.Italic
     };
     ParametersFontOptions = new FontOptions {
         TextColor = Colors.Gray
     };
     StringsFontOptions = new FontOptions {
         TextColor = Colors.Gray
     };
     TableFontOptions = new FontOptions {
         TextColor = Colors.Maroon
     };
     FeatureKeywordFontOptions = new FontOptions {
         TextColor = Colors.DarkBlue, Weight = FontWeights.Bold
     };
     StepKeywordFontOptions = new FontOptions {
         TextColor = Colors.Blue, Weight = FontWeights.Bold
     };
     WordWrap           = false;
     DisplayLineNumbers = true;
     DisplaySymbols     = false;
 }
예제 #2
0
 public EditorOptions()
 {
     FontFamily = "Consolas";
     FontSize = "10pt";
     FontOptions = new FontOptions();
     CommentFontOptions = new FontOptions { TextColor = Colors.Green };
     TagFontOptions = new FontOptions { TextColor = Colors.Teal, Style = FontStyles.Italic };
     ParametersFontOptions = new FontOptions { TextColor = Colors.Gray };
     StringsFontOptions = new FontOptions { TextColor = Colors.Gray };
     TableFontOptions = new FontOptions { TextColor = Colors.Maroon };
     FeatureKeywordFontOptions = new FontOptions { TextColor = Colors.DarkBlue, Weight = FontWeights.Bold };
     StepKeywordFontOptions = new FontOptions { TextColor = Colors.Blue, Weight = FontWeights.Bold };
     WordWrap = false;
     DisplayLineNumbers = true;
     DisplaySymbols = false;
 }
 public HighlightingDefinition AddSpan(string startExpression, string endExpression, FontOptions options)
 {
     return AddSpan(startExpression, endExpression, options.ToHighlightingColor());
 }
 public HighlightingDefinition AddRule(string expression, FontOptions options)
 {
     return AddRule(expression, options.ToHighlightingColor());
 }
예제 #5
0
 private FontOptions GetFontOptions()
 {
     var options = new FontOptions
     {
         BackgroundColor = lblBackgroundColorSelector.BackColor.ToWpfColor(),
         TextColor = lblTextColorSelector.BackColor.ToWpfColor(),
         Weight = (FontWeight)cbxFontWeight.SelectedItem,
         Style = (FontStyle)cbxFontStyle.SelectedItem,
         Underline = chkUnderline.Checked
     };
     return options;
 }
예제 #6
0
 private void SetFontOptions(FontOptions value)
 {
     lblBackgroundColorSelector.BackColor = value.BackgroundColor.ToWinFormsColor();
     lblTextColorSelector.BackColor = value.TextColor.ToWinFormsColor();
     cbxFontWeight.SelectedItem = value.Weight;
     cbxFontStyle.SelectedItem = value.Style;
     chkUnderline.Checked = value.Underline;
 }