dongs0104 / qlcolorcode

Automatically exported from code.google.com/p/qlcolorcode
0 stars 0 forks source link

Add Support for VXML ( tryed but didn't work ! ) #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've tried to add support for VXML ( which is standard XML ), but didn't worked 
( followed all FAQ 
steps... ), let me copy the block that I've added inside the Info.plist:

<dict>
                        <key>UTTypeConformsTo</key>
                        <array>
                                <string>public.source-code</string>
                        </array>
                        <key>UTTypeDescription</key>
                        <string>VoiceXML (VXML)</string>
                        <key>UTTypeIdentifier</key>
                        <string>public.xml</string>
                        <key>UTTypeTagSpecification</key>
                        <dict>
                                <key>public.filename-extension</key>
                                <array>
                                        <string>vxml</string>
                                </array>
                        </dict>
                </dict>

I also tried:

<dict>
                        <key>UTTypeConformsTo</key>
                        <array>
                                <string>public.xml</string>
                        </array>
                        <key>UTTypeDescription</key>
                        <string>VoiceXML (VXML)</string>
                        <key>UTTypeIdentifier</key>
                        <string>public.xml</string>
                        <key>UTTypeTagSpecification</key>
                        <dict>
                                <key>public.filename-extension</key>
                                <array>
                                        <string>vxml</string>
                                </array>
                        </dict>
                </dict>

None of those worked ( I did the tests recommended on the FAQ too )....

I just need that .vxml files get processed as the standard .xml files are.

Thanks.

Original issue reported on code.google.com by opti...@gmail.com on 17 Jul 2009 at 6:01

GoogleCodeExporter commented 8 years ago
Your second block is almost correct, but you don't want UTTypeIdentifier to be 
public.xml -- that means you're 
trying to *redefine* public.xml.  Try again, but use public.vxml in that spot.

Original comment by n8gray@gmail.com on 17 Jul 2009 at 6:42

GoogleCodeExporter commented 8 years ago
Thanks !!!
Worked like a charm ! :)

Follows the whole block for anyone who wants to use QLColorCode with VXML 
Syntax Highlighting.
Just add the block to your Info.plist

<dict>
            <key>UTTypeConformsTo</key>
            <array>
                <string>public.source-code</string>
            </array>
            <key>UTTypeDescription</key>
            <string>VoiceXML (VXML)</string>
            <key>UTTypeIdentifier</key>
            <string>public.vxml</string>
            <key>UTTypeTagSpecification</key>
            <dict>
                <key>public.filename-extension</key>
                <array>
                    <string>vxml</string>
                </array>
            </dict>
        </dict>

Original comment by opti...@gmail.com on 17 Jul 2009 at 7:23

GoogleCodeExporter commented 8 years ago

Original comment by n8gray@gmail.com on 17 Jul 2009 at 7:50