Changeset 2683 for trunk/VSlickMacros


Ignore:
Timestamp:
May 13, 2013, 4:50:54 AM (12 years ago)
Author:
bird
Message:

Save stuff as utf-8 without BOM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VSlickMacros/kdev.e

    r2610 r2683  
    34443444                   'PV-WAVE (*.pro),'
    34453445                   'Slick-C (*.e;*.sh),'
    3446                    'SQL Files (*.sql),'
     3446                   'SQL Files (*.sql;*.pgsql),'
    34473447                   'SAS Files (*.sas),'
    34483448                   'Text Files (*.txt),'
     
    35303530            //replace_def_data("def-comment-wrap-c",'1 1 0 1 1 80 0 0 80 0 80 0 80 0 0 1 '); - enable block comment wrap.
    35313531        }
     3532
     3533        /* set the encoding to UTF-8 without any friggin useless signatures. */
     3534        idxExt = name_match('def-lang-for-ext-', 1, MISC_TYPE);
     3535        while (idxExt > 0)
     3536        {
     3537            if (name_info(idxExt) == sLangId)
     3538            {
     3539                parse name_name(idxExt) with 'def-lang-for-ext-' auto sExt;
     3540                sVarName = 'def-encoding-' :+ sExt;
     3541                idxExtEncoding = find_index(sVarName, MISC_TYPE);
     3542                if (idxExtEncoding != 0)
     3543                    delete_name(idxExtEncoding);
     3544            }
     3545            idxExt = name_match('def-lang-for-ext-', 0, MISC_TYPE);
     3546        }
     3547        replace_def_data('def-encoding-' :+ sLangId, '+futf8 ');
    35323548    }
    35333549    LanguageSettings.setIndentWithTabs('mak', true);
     
    35383554    LanguageSettings.setBeautifierProfileName('m', "bird's Objective-C Style");
    35393555
    3540     /* Fix .asm and add .mac, .kmk and .cmd. */
    3541     replace_def_data("def-lang-for-ext-asm",'masm');
    3542     replace_def_data("def-lang-for-ext-mac",'masm');
    3543     replace_def_data("def-lang-for-ext-kmk",'mak');
    3544     replace_def_data("def-lang-for-ext-cmd",'bat');
     3556    /* Fix .asm and add .mac, .kmk, .cmd, and .pgsql. */
     3557    replace_def_data("def-lang-for-ext-asm",   'masm');
     3558    replace_def_data("def-lang-for-ext-mac",   'masm');
     3559    replace_def_data("def-lang-for-ext-kmk",   'mak');
     3560    replace_def_data("def-lang-for-ext-cmd",   'bat');
     3561    replace_def_data("def-lang-for-ext-pgsql", 'plsql');
    35453562
    35463563    /*
Note: See TracChangeset for help on using the changeset viewer.