Skip to content

Instantly share code, notes, and snippets.

@NoahRic
Created October 30, 2009 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NoahRic/222177 to your computer and use it in GitHub Desktop.
Save NoahRic/222177 to your computer and use it in GitHub Desktop.
A sample MarkerFormatDefinition (VS 2010 Beta 2)
[Export(typeof(EditorFormatDefinition))]
[Name("mymarker")]
internal sealed class MyMarkerDefinition : MarkerFormatDefinition
{
public MyMarkerDefinition()
{
this.ZOrder = 1;
this.Fill = Brushes.Blue;
this.Border = new Pen(Brushes.DarkGray, 0.5);
this.Fill.Freeze();
this.Border.Freeze();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment