public class HighlightScheme
{
private string m_Name = "";
public string Name
{
get
{
return m_Name;
}
set
{
m_Name = value;
}
}
private HighlightDefinition m_MainHighlight = new HighlightDefinition();
public HighlightDefinition MainHighlight
{
get
{
return m_MainHighlight;
}
set
{
m_MainHighlight = value;
}
}
private List<HighlightDefinition> m_HighlightDefinitionen = new List<HighlightDefinition>();
public List<HighlightDefinition> HighlightDefinitionen
{
get
{
return m_HighlightDefinitionen;
}
set
{
m_HighlightDefinitionen = value;
}
}
}
public class Span
{
private string m_Start = "";
public string Start
{
get
{
return m_Start;
}
set
{
m_Start = value;
}
}
private string m_End = "";
public string End
{
get
{
return m_End;
}
set
{
m_End = value;
}
}
private string m_HighlightDefName = "";
public string HighlightDefName
{
get
{
return m_HighlightDefName;
}
set
{
m_HighlightDefName = value;
}
}
}
public class HighlightDefinition
{
private HighlightElement m_Default = new HighlightElement();
public HighlightElement Default
{
get
{
return m_Default;
}
set
{
m_Default = value;
}
}
private List<Range> m_Ranges = new List<Range>();
public List<Range> Ranges
{
get
{
return m_Ranges;
}
set
{
m_Ranges = value;
}
}
private List<Variable> m_Variablen = new List<Variable>();
public List<Variable> Variablen
{
get
{
return m_Variablen;
}
set
{
m_Variablen = value;
}
}
private List<KeyWord> m_KeyWords = new List<KeyWord>();
public List<KeyWord> KeyWords
{
get
{
return m_KeyWords;
}
set
{
m_KeyWords = value;
}
}
public HighlightDefinition()
{ }
}
public class HighlightElement
{
private bool m_Bold = false;
public bool Bold
{
get
{
return m_Bold;
}
set
{
m_Bold = value;
}
}
private bool m_Italic = false;
public bool Italic
{
get
{
return m_Italic;
}
set
{
m_Italic = value;
}
}
private bool m_Unterline = false;
public bool Unterline
{
get
{
return m_Unterline;
}
set
{
m_Unterline = value;
}
}
private Color m_ForeColor = Color.Black;
public Color ForeColor
{
get
{
return m_ForeColor;
}
set
{
m_ForeColor = value;
}
}
public HighlightElement()
{ }
public HighlightElement(bool bold, bool italic, bool underline, Color forecolor)
{
this.Bold = bold;
this.Italic = italic;
this.Unterline = underline;
this.ForeColor = ForeColor;
}
}
public class Range : HighlightElement
{
private string m_Start = null;
public string Start
{
get
{
return m_Start;
}
set
{
m_Start = value;
}
}
private string m_End = null;
public string End
{
get
{
return m_End;
}
set
{
m_End = value;
}
}
private string m_Name = null;
public string Name
{
get
{
return m_Name;
}
set
{
m_Name = value;
}
}
private bool m_UseEscape = false;
public bool UseEscape
{
get
{
return m_UseEscape;
}
set
{
m_UseEscape = value;
}
}
public Range()
{
this.Start = "";
this.End = "";
this.Name = "";
this.UseEscape = false;
}
public Range(string name, string start, string end, bool useescape, bool bold, bool italic, bool underline, Color forecolor)
{
this.Name = name;
this.Start = start;
this.End = end;
this.UseEscape = useescape;
this.Bold = bold;
this.Italic = italic;
this.Unterline = underline;
this.ForeColor = forecolor;
}
}
public class Variable : HighlightElement
{
private string m_Suffix = null;
public string Suffix
{
get
{
return m_Suffix;
}
set
{
m_Suffix = value;
}
}
private string m_Prefix = null;
public string Prefix
{
get
{
return m_Prefix;
}
set
{
m_Prefix = value;
}
}
public Variable()
{
this.Suffix = "";
this.Prefix = "";
}
public Variable(string suffix, bool bold, bool italic, bool underline, Color forecolor)
{
this.Suffix = suffix;
this.Prefix = "";
this.Bold = bold;
this.Italic = italic;
this.Unterline = underline;
this.ForeColor = forecolor;
}
public Variable(bool bold, string prefix, bool italic, bool underline, Color forecolor)
{
this.Suffix = "";
this.Prefix = prefix;
this.Bold = bold;
this.Italic = italic;
this.Unterline = underline;
this.ForeColor = forecolor;
}
public Variable(string suffix, bool bold, string prefix, bool italic, bool underline, Color forecolor)
{
this.Suffix = suffix;
this.Prefix = prefix;
this.Bold = bold;
this.Italic = italic;
this.Unterline = underline;
this.ForeColor = forecolor;
}
}
public class KeyWord : HighlightElement
{
private string m_Value = null;
public string Value
{
get
{
return m_Value;
}
set
{
m_Value = value;
}
}
public KeyWord(string value)
{
this.Value = value;
}
public KeyWord(string value, bool bold, bool italic, bool underline, Color forecolor)
{
this.Value = value;
this.Bold = bold;
this.Italic = italic;
this.Unterline = underline;
this.ForeColor = forecolor;
}
}