paloalto
V2EX  ›  问与答

sublime text 中 .sass 文件的注释问题

  •  
  •   paloalto · Mar 11, 2014 · 2294 views
    This topic created in 4541 days ago, the information mentioned may be changed or developed.
    每次按快捷键 command + / 增加注释时, 自动加上的注释代码都是 // aaa ,但是css的注释应该是/* aaaa */ ,刚才没注意这个差别,差点被坑(因为从颜色上看代码是被注释掉了的)。

    请教怎么才能改成正常的注释代码?
    1 replies    1970-01-01 08:00:00 +08:00
    paloalto
        1
    paloalto  
    OP
       Mar 11, 2014
    有结果了:

    Sass supports standard multiline CSS comments with /* */, as well as single-line comments with //. The multiline comments are preserved in the CSS output where possible, while the single-line comments are removed.

    http://sass-lang.com/documentation/file.SASS_REFERENCE.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   874 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:17 · PVG 04:17 · LAX 13:17 · JFK 16:17
    ♥ Do have faith in what you're doing.