Sublime Text 2 中有汇编语法高亮吗?

发布于 2024-12-31 21:01:33 字数 20 浏览 7 评论 0 原文

我无法突出显示我的程序集。

I'm unable to highlight my assembly.

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

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

发布评论

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

评论(8

翻身的咸鱼 2025-01-07 21:01:33

否,但由于 Sublime Text 2 可以读取 Textmate 语言定义文件(.tmLanguage 文件),因此您可以通过复制类似 https://github.com/foxostro/x86- assembly-textmate-bundle 到您的“Packages”目录(在我的 Win7 上为 C:\Users\hugo\AppData\Roaming\Sublime Text 2\Packages)。

No, but since Sublime Text 2 can read Textmate language definition files (.tmLanguage files), you could easily add support to Assembly by copying something like https://github.com/foxostro/x86-assembly-textmate-bundle to your "Packages" directory (C:\Users\hugo\AppData\Roaming\Sublime Text 2\Packages on my Win7).

呆° 2025-01-07 21:01:33

对于 MIPS:

在 Sublime Text 中,只需转到 Preferences >包控制>安装软件包。搜索 mips-syntax 并在结果上按 Enter 键。

安装后,您应该能够选择 MIPS 作为您正在编辑的任何文件的语法突出显示。

编辑:当然,这确实假设您的 Sublime 具有 Package Control。您可以通过包控制来执行此操作以及更多操作:http://wbond.net/sublime_packages/package_control

For MIPS:

In Sublime Text, just go to Preferences > Package Control > install packages. Once there search for mips-syntax and hit enter on the result.

Once it installs you should be able to select MIPS as the syntax highlighting for whatever file you're editing.

Edit: Of course, this does assume that your Sublime has Package Control. You can get package control to do this and more at: http://wbond.net/sublime_packages/package_control.

唠甜嗑 2025-01-07 21:01:33

GNU 汇编器 (GAS) x86(-64) 语法:

我知道有一个选定的答案,但对于将来来到这里的任何其他人,您必须指定您想要哪种语法/机器。对于许多不同的机器来说,装配有许多不同的风格。其他答案给出了 Intel x86、NASM、SPARC 和 MIPS。当我在 2014 年访问此页面时,我正在寻找 x86 的良好 GAS/AT&T 语法定义,但我从未找到。

所以很自然地,我做了我自己的。它实际上是一个 x64 荧光笔,但当然也包括 x86。

它也在包控制上。要找到它,请在搜索字段中输入“gasx”。

我还将其移植到 Atom (可从 Atom 包中获取),Vim,以及Gedit

GNU Assembler (GAS) x86(-64) syntax:

I know there's a chosen answer, but for anyone else who comes here in the future, you have to specify which syntax/machine you want. Assembly comes in a lot of different flavors for a lot of different machines. Other answers have given Intel x86, NASM, SPARC, and MIPS. When I visited this page back in 2014, I was looking for a good GAS/AT&T syntax def for x86, which I never found.

So naturally, I made my own. It's really an x64 highlighter, but of course that includes x86 too.

It's also on Package Control. To find it, type "gasx" into the search field.

I also ported it over to Atom (available from Atom packages), Vim, and Gedit.

时光瘦了 2025-01-07 21:01:33

我找到了另一个汇编 x86 语法定义 (NASM)

看来这家伙做了很多工作,并且不断更新语法。至少在撰写本文时,最后一次更改是在 9 天前。

他还在 Sublime 论坛上发布了这篇文章

I've found another one Assembly x86 syntax definition (NASM).

It seems that this guy had done a huge amount of work, and keeps the syntax updated. At least at the time of writing the last change was 9 days ago.

He has also this post on Sublime forum.

前事休说 2025-01-07 21:01:33

和其他人一样,我注意到 Sublime Text 2 中明显缺乏 SPARC 语法突出显示,因此我推出了自己的语法突出显示。它功能齐全,并且在 Will Bond 的 自己的条目 ://wbond.net/sublime_packages/package_control" rel="nofollow">包控制。安装了 Package Control 后,您可以通过 Ctrl+Shift+P -> 在 Sublime 中安装我的包。包控制:安装包-> SPARC 汇编语法

Github 项目页面上提供了完整的安装说明和使用提示。

Like others, I noticed a distinct lack of SPARC syntax highlighting in Sublime Text 2, so I rolled my own. It's fully functional, and has its very own entry in Will Bond's Package Control. With Package Control installed, you can install my package in Sublime via Ctrl+Shift+P -> Package Control: Install Package -> SPARC Assembly Syntax.

Complete install instructions and usage tips are available on the Github project page.

辞旧 2025-01-07 21:01:33

我知道问题是针对 Sublime 2 的,但如果你想要一个漂亮的荧光笔
我正在 Sublime 3 上使用 MassmAssembly,发现它非常好。它甚至还突出显示了ZMM 寄存器和最新的 SSE 指令

您可以使用包控制插件安装它,尽管如此,这里是存储库:
https://packagecontrol.io/packages/MasmAssembly

I know the question was for Sublime 2, but if you want a nice highlighter
I'm using the MasmAssembly on Sublime 3 and found that its quite good. It highlights even ZMMs registers and the lastests SSE instructions.

You can install it using the package control plugin, nevetheless here is the repository:
https://packagecontrol.io/packages/MasmAssembly

柠檬色的秋千 2025-01-07 21:01:33

AVR-ASM 也可用!

请参阅 Bitwise 的答案,但搜索 AVR-ASM。

我必须先安装 Package Control

Win/Linux:< /代码>
Mac:

...然后输入“Install Package Control”并按

AVR-ASM is also available!

See answer by Bitwise but search for AVR-ASM.

I had to install Package Control first:

Win/Linux: <Ctrl + Shift + P>
Mac: <Cmd + Shift + P>

...then type "Install Package Control" and press <Enter>

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