[MonoDevelop] Creating addin which draws additional info in TextEditor.
michail.karayani at gmail.com
Wed Nov 9 04:00:41 EST 2011
maybe it'll be helpful for anyone else, I was helped by Mike Krüger
and that's what he had answered
We don't have a very "good" extension point, but one that can do anything.
The thing you're looking for is called TextEditorExtension.
Somethin like that should work:
<Extension path = "/MonoDevelop/Ide/TextEditorExtensions">
<Class fileExtensions = ".cs" class = "YourClass" />
You should add a MarginDrawer to the TextViewMargin to draw stuff like that.
(I've never done anything like that as an external addin - if you run
into problems I'll change the API :))
8 ноября 2011 г. 22:54 пользователь Михаил Караяни
<michail.karayani at gmail.com> написал:
> Is there anybody alive? :)
> 2011/11/5 Михаил Караяни <michail.karayani at gmail.com>:
>> Hi, everybody :)
>> I'm a newcomer to Mono and Monodevelop, so, please, try to be patient.
>> I want to write a simple addin for MD, but I don't know where to start
>> from. Addin google group almost dead, so I decided to ask here.
>> I wanna do thing like IntendGuide for VS2010
>> http://indentguide.codeplex.com/. I dug MD source code, but didn't
>> find any suitable
>> extension point for this. The only thing I figured out is that for
>> drawing in texteditor's area used different classes derived from
>> Margin (IconMargin, TextViewMargin and so on).
>> But this "margins" used only internal in TextEditor and I can't add my
>> own. Maybe I'm wrong and this is not the only one and right way of
>> such kind of functionality. I will be very thankful for any advices.
>> Best regards, ]:)-/<
> С уважением, ]:)-/<
С уважением, ]:)-/<
More information about the Monodevelop-list