Public Gists by noahrichards

Gravatar
Tue Jul 14 21:32:58 -0700 2009
1
2
3
[Export(typeof(ITaggerProvider))]
[TagType(typeof(SquiggleTag))] // this will probably be "IErrorTag" in the next release
[ContentType("text")] // "text" is the base of basically all content types
Gravatar
Tue Jul 14 21:27:42 -0700 2009
1
2
3
    internal sealed class ToDoTagger : ITagger<SquiggleTag>
    {
        // Our simple tagger can ignore this for now
Gravatar
Tue Jul 14 21:15:53 -0700 2009
1
2
3
[Export(typeof(ITaggerProvider))]
[TagType(typeof(SquiggleTag))] // this will probably be "IErrorTag" in the next release
[ContentType("text")] // "text" is the base of basically all content types
Gravatar
Tue Jul 07 08:20:21 -0700 2009
1
2
3
// starting with a SnapshotPoint, text line, or SnapshotSpan
SnapshotPoint point;
ITextSnapshotLine line = point.GetContainingLine();
Gravatar
Fri Jun 12 15:25:53 -0700 2009
1
2
3
// Make the background goldenrod yellow :)
 
[Export(typeof(IWpfTextViewCreationListener))]
Gravatar
Fri Jun 12 09:37:02 -0700 2009
1
2
3
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Utilities;
using Microsoft.VisualStudio.Text.Editor;
Gravatar
Fri Jun 12 08:32:46 -0700 2009
1
2
3
//// Moving to a new visual line
 
// Assuming you have ITextView textView
Gravatar
Fri Jun 12 08:27:55 -0700 2009
1
2
3
//// Using the caret directly
 
// assuming you have ITextView textView
Gravatar
Sun Jun 07 17:05:15 -0700 2009
1
2
3
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
Gravatar
Fri May 15 00:28:17 -0700 2009
1
testing gist