public Editor(Sgry.Azuki.Document doc, Course course) { InitializeComponent(); TextEditor.Document = doc; Text = Properties.Common.Editor + course.Name; TextEditor.Highlighter = null; TextEditor.Highlighter = Highlighter.InitHighlighter(); ColorScheme.SetColorScheme(TextEditor.ColorScheme, Program.Setting); TextEditor.ForeColor = Program.Setting.Editor_ForeColor; TextEditor.BackColor = Program.Setting.Editor_BackColor; TextEditor.Font = new Font(Program.Setting.FontName, Program.Setting.FontSize); TextEditor.SetKeyBind(Keys.Back | Keys.Shift, Sgry.Azuki.Actions.BackSpace); TextEditor.ShowsLineNumber = Program.Setting.Show_Line_Number; TextEditor.ShowsHRuler = Program.Setting.Show_Horizontal_Ruler; TextEditor.HRulerStartsFromZero = Program.Setting.Show_Horizontal_Ruler_Zero; TextEditor.DrawsEofMark = Program.Setting.Show_EoF_Mark; TextEditor.DrawsEolCode = Program.Setting.Show_EoL_Mark; TextEditor.DrawsFullWidthSpace = Program.Setting.Show_Space_Mark; TextEditor.DrawsSpace = Program.Setting.Show_Space_Mark; TextEditor.DrawsTab = Program.Setting.Show_Tab_Mark; }
private void Tab_Editor_Other_BackColorChanged(object sender, EventArgs e) { Setting.ColorScheme.Other.BackColor = Tab_Editor_Other.BackColor; ColorScheme.SetColorScheme(Tab_Editor_Sample.ColorScheme, Setting); Tab_Editor_Sample.Invalidate(); }
private void Tab_Editor_Balloon_ForeColorChanged(object sender, EventArgs e) { Setting.ColorScheme.Balloon.ForeColor = Tab_Editor_Balloon.ForeColor; ColorScheme.SetColorScheme(Tab_Editor_Sample.ColorScheme, Setting); Tab_Editor_Sample.Invalidate(); }
private void Tab_Editor_Header_ForeColorChanged(object sender, EventArgs e) { Setting.ColorScheme.Keyword.ForeColor = Tab_Editor_Header.ForeColor; ColorScheme.SetColorScheme(Tab_Editor_Sample.ColorScheme, Setting); Tab_Editor_Sample.Invalidate(); }