适用于 MacOS 的 CoffeeScript 编辑器

发布于 2024-10-03 18:00:34 字数 96 浏览 2 评论 0 原文

有人知道 Mac 上有一个支持 CoffeeScript 语法高亮的好文本编辑器吗?可以在 TextWrangler 或 BBEdit 中执行此操作吗?

干杯:)

Does anybody know a good text editor for Mac that supports syntax highlighting in CoffeeScript? Is it possible to do this in TextWrangler or BBEdit?

Cheers :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

阳光下慵懒的猫 2024-10-10 18:00:34

http://jashkenas.github.com/coffee-script/ 上有一个列表可用的内容。

对于 Emacs,有 CoffeeScript 主要模式(Emacs for mac:http://aquamacs.org/)

对于 Vim,有 Vim CoffeeScript (Mac 版 Vim:http:// code.google.com/p/macvim/)

对于 TextmateCoffeeScript TextMate Bundle (Trevor 是如何指出的,这是由 CoffeeScript 创建者 Jeremy Ashkenas 维护的。 ​​Chocohound,它适用于 Sublime Text 2 也是)

对于 Gedit,有 gedit-coffeescript

对于 IntelliJ IDEA和 RubyMine 有 coffeescript-idea

我找不到 TextWrangler 或 BBEdit< /罢工>。

编辑:

该列表已移至wiki< /a> 现在也尝试制作 BBEdit 插件;)

正如 mb21 所说,你可以找到 TextWrangler 说明 此处

On http://jashkenas.github.com/coffee-script/ there is a list of what is available.

For Emacs there is CoffeeScript Major Mode (Emacs for mac: http://aquamacs.org/)

For Vim there is Vim CoffeeScript (Vim for mac: http://code.google.com/p/macvim/)

For Textmate there is CoffeeScript TextMate Bundle (how noted by Trevor, this is maintained by CoffeeScript creator Jeremy Ashkenas. And how noted by Chocohound, it works on Sublime Text 2 too)

For Gedit there is gedit-coffeescript

For IntelliJ IDEA and RubyMine there is coffeescript-idea

I can find nothing for TextWrangler or BBEdit.

Edit:

The list moved to the wiki and now there is an attempt to make a BBEdit plugin too ;)

As mb21 said, you can find TextWrangler instructions here.

做个少女永远怀春 2024-10-10 18:00:34

要在 Eclipse 中突出显示 CoffeeScript:

  1. 下载
    http://www.gstaff.org/colorEditor/cbg.editor_1.2.6.jar
  2. 下载 https://raw.github.com/dhotson/ Coffeescript-jedit/master/coffeescript.xml
  3. 使用 zip 编辑器打开 cbg.editor_1.2.6.jar。
  4. 将coffeescript.xml放入cbg.editor_1.2.6.jar\modes目录中
  5. 编辑cbg.editor_1.2.6.jar\modes\catalog(它是一个XML文件)
  6. 为Coffeescript添加一行:

保存 .jar 并将其放入 Eclipse 的插件目录中。重新启动 Eclipse,.coffee 文件现在应该突出显示。

警告:由于某种原因,该插件的默认颜色是可怕的不可用。我建议在查看任何文件之前先编辑附件的颜色。老实说,只是省去自己的心痛。

Eclipse 中的颜色首选项

To highlight coffeescript in Eclipse:

  1. Download
    http://www.gstaff.org/colorEditor/cbg.editor_1.2.6.jar
  2. Download https://raw.github.com/dhotson/coffeescript-jedit/master/coffeescript.xml
  3. Open cbg.editor_1.2.6.jar with a zip editor.
  4. Put coffeescript.xml into the cbg.editor_1.2.6.jar\modes directory
  5. Edit cbg.editor_1.2.6.jar\modes\catalog (it's an XML file)
  6. Add a line for Coffeescript:

<MODE NAME="coffee" FILE="coffeescript.xml"
FILE_NAME_GLOB="*.coffee" />

Save the .jar and put it into Eclipse's plugin directory. Restart Eclipse and .coffee files should now be highlighted.

WARNING: For some reason, this plugin's default colours are TERRIFYINGLY UNUSABLE. I recommend editing the colours to the attached first, before viewing any files. Honestly, just save yourself the heartache.

Colour preferences in Eclipse

懒猫 2024-10-10 18:00:34

TextMate 有很好的捆绑包:

TextMate 捆绑包

RubyMine / IDEA 也有很好的插件(但这是 IDE)并且是跨平台的):

Idea 插件

TextMate have good bundle:

TextMate bundle

RubyMine / IDEA have also good plugin (but this is IDE and is crossplatform):

Idea plugin

谁人与我共长歌 2024-10-10 18:00:34

Aptana 现在有 3.0.4 版,但由于制表符/空格控制上的错误,您需要安装 3.0.5 beta。

这是 Beta Eclipse 更新站点: http://preview.appcelerator.com/ aptana/studio3/plugin/update/beta/

我对 Aptana 非常满意。在我看来,css、scss、coffeescript、html等的编辑器都比这些语言的内置编辑器要好。

Aptana has it now in version 3.0.4, but due to a bug with control over tabs/spaces, you'll need to install the 3.0.5 beta.

This is the beta Eclipse update site: http://preview.appcelerator.com/aptana/studio3/plugin/update/beta/

I'm pretty happy with Aptana. In my opinion, the editors for css, scss, coffeescript, html, etc. are all better than the built-in eclipse editors for these languages.

§对你不离不弃 2024-10-10 18:00:34

Adobe Brackets 具有原生 CoffeeScript 支持,并且“交互式 Linter 扩展(可从应用程序内下载)甚至会在某种程度上对其进行 lint 处理,告诉您行太长等等。

然而,没有注释/取消注释键盘快捷键,它很快就会过时,并且存在其他错误,正如您在如此艰苦的开发中所期望的软件一样。

尽管如此,还是值得一看。

Adobe Brackets has native CoffeeScript support and the 'Interactive Linter' extension (downloadable from within the app) will even lint it to some extent, tell you that your lines are too long and so on.

However, there is no comment/uncomment keyboard shortcut, which gets old fast and there are other bugs, as you'd expect with software in such hard-development.

Worth checking out, none-the-less.

|煩躁 2024-10-10 18:00:34

您尝试过 Eclipse 吗?

Did you give Eclipse a try?

情场扛把子 2024-10-10 18:00:34

这是 BBEdit 中 CoffeeScript 的语法突出显示等的 plist 文件:

https://gist.github.com/3219871< /a>

Here's a plist file for syntax highlighting, etc, for CoffeeScript in BBEdit:

https://gist.github.com/3219871

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文