.NET Framework Bookmark and Share   
 index > Microsoft Codename 'Oslo' > HOWTO: Intellipad, adding a new mode
 

HOWTO: Intellipad, adding a new mode

I'm trying to figure out how to write an Intellipad plugin that extends Intellipad with a new mode.

I wish to create a very simple mode which reads regular expressions (one per line) and matches them against an input buffer and outputs the result to a third output buffer. (the typical three buffers you get with Intellipad when working with MGrammar).

However, where's the documentation? I'm currently using the reflector to reverse engineer how the Python plugin was built, and now I'm looking into the DSL plugin. I think I can make it work, but isn't there any pre-release documentation on how to actually do this? Have anyone successfully built new modes?

My example, with the regular expression scenario, might be easily solved otherways but it's a simple sample mode for learning how to write an Intellipad plugin.
John Leidegren
I found the interactive M repl sample very helpful putting a custom mode together.
MRepl Now Available as a Sample
Doug Finke
I found the interactive M repl sample very helpful putting a custom mode together.
MRepl Now Available as a Sample
Doug Finke
Thanks for pointing out that sample, Doug, as it does help answer this question. As far as documentation goes, this is something I've been trying to get from the Intellipad team for a while. They've just been heads-down coding in our next milestone right now, so hopefully we can get something out in a couple weeks. Can't promise much, though.

.Kraig
Kraig Brockschmidt

You can use google to search for other answers

Custom Search

More Threads

• Using an MGrammar generated parser for syntax highlighting
• Generate a valid MGraph with MGrammar to populate Repository
• Have you thought about including speech recognition over an M grammar?
• Inconsistent list projection
• mg Inline Rules Cause Duplicate Productions in Generated CS Code?
• Trouble with CaseSensivity in Intellipad
• Type inheritance - order of inherited members
• Oslo and the DSL Toolkit
• Explanation of Oslo error “M0197: ‘Text?cannot be used in a Type context?
• Where can I get Quadrant?