Languages specified by filename?

Languages specified by filename?

2
NewbieNewbie
2

    Sep 22, 2005#1

    I have an often-used XML file. I want to specialise the function list just for this file so I can pick out specific element names.

    I thought I might be able to create a new language (derived from XML) and give a filename rather than extension but this doesn't seem to work.

    Anybody know if this can be done.

    Thanks,
    macon

    10
    Basic UserBasic User
    10

      Sep 22, 2005#2

      Using File Names = instead of File Extensions = at the end of the /L line works fine for me - with the file name(s) only, without path! Maybe that's the reason?

      2
      NewbieNewbie
      2

        Sep 22, 2005#3

        Thanks Andreas,

        I had tried that initally but it didn't seem to work. It turns out the order of the languages is important. After I moved the "File Names = catalog.xml" language above the "File Extensions = XML" language it started working.

        Thanks
        Matt