currencysecrets / mql4

MQL4 Snippets & Syntax for Sublime Text
MIT License
97 stars 36 forks source link

Toggle command not working? #11

Open Heart1010 opened 8 years ago

Heart1010 commented 8 years ago

Toggle command (with short cut and/or Edit > Comment > Toggle Comment) don't work. Can you add these funcionality please?

Thanks

20Tauri commented 8 years ago

I'm the DoxyDoxygen package maintainer and an user reporting me a bug with the same origin.

To fix it, create a MQL4.tmPreferences file with the following content (not tested)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>name</key>
    <string>MQL4 Comments</string>
    <key>scope</key>
    <string>source.mq4</string>
    <key>settings</key>
    <dict>
        <key>shellVariables</key>
        <array>
            <dict>
                <key>name</key>
                <string>TM_COMMENT_START</string>
                <key>value</key>
                <string>// </string>
            </dict>
            <dict>
                <key>name</key>
                <string>TM_COMMENT_START_2</string>
                <key>value</key>
                <string>/*</string>
            </dict>
            <dict>
                <key>name</key>
                <string>TM_COMMENT_END_2</string>
                <key>value</key>
                <string>*/</string>
            </dict>
        </array>
    </dict>
    <key>uuid</key>
    <string>12345678-1234-1234-1234-1234567890</string>
</dict>
</plist>

Regards,

tonkla commented 7 years ago

This issue relates with https://github.com/currencysecrets/mql4/issues/23 which is closed now.