Syntax highlighting for Jade in Sublime Text 2?

后端 未结 9 1889
无人及你
无人及你 2020-12-12 10:25

I just started using Sublime Text 2 on Mac. I also just started using Jade for my views in Node.js, and am wondering if there is a way to add syntax highlighting for Jade in

相关标签:
9条回答
  • 2020-12-12 10:46

    Jade is also available via the Sublime Package Control.

    0 讨论(0)
  • 2020-12-12 10:50

    The accepted answer refers to a plugin that is deprecated and no longer active. For those who are still looking for a supported Jade plugin for Sublime Text, you should use this repo:

    https://github.com/davidrios/jade-tmbundle

    This is also on Package Control:

    https://packagecontrol.io/packages/Jade

    0 讨论(0)
  • 2020-12-12 10:52

    I've made the following on linux ST2 build 2221:

    git clone https://github.com/miksago/jade-tmbundle.git Jade.tmbundle
    

    Then

    zip -r Jade.zip Jade.tmbundle/
    mv Jade.zip Jade.sublime-package
    mv Jade.sublime-package /sublime_folder_location/Pristine Packages/
    
    0 讨论(0)
  • 2020-12-12 10:55

    @jurka -

    • OS X: ~/Library/Application Support/Sublime Text 2/Packages/
    • Linux: ~/.Sublime Text 2/Packages/
    • Windows: %APPDATA%/Sublime Text 2/Packages/

    Clone into the path shown above for linux.

    0 讨论(0)
  • 2020-12-12 10:55

    For ubuntu 11.10 correct path to packages for me is ~/.config/sublime-text-2/Packages You can easily find your packages location using Menu: "Preferences" -> "Browse Packages..."

    0 讨论(0)
  • 2020-12-12 10:55

    If you are on Mac:

    Go to Library/Applciation Support/Sublime Text 2/Packages/ then,

    curl -O https://raw.github.com/miksago/jade-tmbundle/master/Syntaxes/Jade.tmLanguage
    
    0 讨论(0)
提交回复
热议问题