none
Notepad++ User Defined Language in Visual Studio RRS feed

  • Question


  • I'd like to use my userdefinedlanguage.xml files from Notepad++ in Visual Studio. How do I export classifiers at runtime?

    Here is the flow:

    1. Visual Studio starts
    2. UDLPackage starts
    3. UDLPackage loads my *.xml files
    4. UDLPackage creates a UDLClassifierProvider for each *.xml file
    5. UDLPackage exports the UDLClassifierProvider with the Name, ContentType, FileExtension specified in each xml file.
        [Export(typeof(ITaggerProvider))]
        [ContentType("ook!")]
        [TagType(typeof(ClassificationTag))]
        internal sealed class OokClassifierProvider : ITaggerProvider
        {
    
            [Export]
            [Name("ook!")]
            [BaseDefinition("code")]
            internal static ContentTypeDefinition OokContentType = null;
    
            [Export]
            [FileExtension(".ook")]
            [ContentType("ook!")]
            internal static FileExtensionToContentTypeDefinition OokFileType = null;

    I can do steps 1 through 4. How do I do step 5? How do I programatically export my UDLClassifierProvider with MEF at runtime.


    Aron Curzon



    Thursday, August 8, 2013 8:08 PM

All replies

  • Hi Aron,

    I'm trying to involve some senior engineers into this issue and it will take some time. Your patience will be greatly appreciated. We will let you know if any progress is made.

    Sorry for any inconvenience!


    Sophia Gou
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, August 12, 2013 2:09 AM
  • This isn't possible, for performance reasons there is no dynamic composition in the vs shell.
    Friday, August 30, 2013 9:53 PM