V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
P233
5.03D

给 Syntax Highlighting for Sass 加了个很酷的功能

  •  
  •   P233 · Oct 28, 2013 · 3198 views
    This topic created in 4568 days ago, the information mentioned may be changed or developed.
    注释中用 {{ }} 包裹的内容可以通过 "Goto Symbol" 或者 “Goto Symbol in Project” 快速定位,比用 id 或者 class 方便多了 :)

    https://github.com/P233/Syntax-highlighting-for-Sass
    Supplement 1  ·  Oct 30, 2013
    想进一步添加功能,请问如何实现简单的显示/隐藏文件呢?类似 Package Control 的显示隐藏插件,不懂 Python 一点头绪没有 :(

    我做了 Compass 和 Bourbon 的自动补完,但放在一起用太不方便,想增加一个切换开关

    感谢!
    5 replies    1970-01-01 08:00:00 +08:00
    P233
        1
    P233  
    OP
       Oct 30, 2013
    人工置顶?
    buru
        2
    buru  
       Oct 30, 2013 via iPhone
    注释里写class name么?
    P233
        3
    P233  
    OP
       Oct 30, 2013
    @buru 如果创建这样的注释:

    /* {{ct_header}} */
    // {{ct_footer}}

    ST 的 Goto Symbol, Goto Symbol in Project,以及 Goto Definition 会将 {{}} 内的内容做索引。在项目的任何一个文件中,如果要翻看 header 部分的 CSS,只需要 super+shift+r 然后输入 ct_header 就跳过去了 (ct 做前缀跟其他 symbol 区分)。如果两部分 CSS 都修饰同一部分,却分别放置在不同的文件中,写上相同的 Tag 就可以用 super+alt+down 跳过去再跳回来,再也不需要翻看文件了。
    buru
        4
    buru  
       Oct 30, 2013
    good job,自己用很方便,不过其他人怕会看不懂注释,^^
    P233
        5
    P233  
    OP
       Oct 30, 2013
    @buru 其实就是自己用的 :), 几个老外也说这个功能不错,时间久了用的人也会变多
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2537 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 09:18 · PVG 17:18 · LAX 02:18 · JFK 05:18
    ♥ Do have faith in what you're doing.