for WinForms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
// <version>$Revision$</version>
// </file>
using System.Xml;
namespace ICSharpCode.TextEditor.Document
{
/// <summary>
/// Used for mark next token
/// </summary>
public class NextMarker
{
/// <summary>
/// Creates a new instance of <see cref="NextMarker" />
/// </summary>
public NextMarker(XmlElement mark)
{
Color = new HighlightColor(mark);
What = mark.InnerText;
if (mark.Attributes["markmarker"] != null)
MarkMarker = bool.Parse(mark.Attributes["markmarker"].InnerText);
}
/// <value>
/// String value to indicate to mark next token
/// </value>
public string What { get; }
/// <value>
/// Color for marking next token
/// </value>
public HighlightColor Color { get; }
/// <value>
/// If true the indication text will be marked with the same color
/// too
/// </value>
public bool MarkMarker { get; }
}
}