Is there syntax highlighting for assembly in Sublime Text 2?

前端 未结 7 530
忘了有多久
忘了有多久 2021-02-01 12:51

I\'m unable to highlight my assembly.

相关标签:
7条回答
  • 2021-02-01 13:41

    Old question, but there is this one: https://packagecontrol.io/packages/NASM%20x86%20Assembly

    0 讨论(0)
  • 2021-02-01 13:42

    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).

    0 讨论(0)
  • 2021-02-01 13:43

    There is now a much better answer to this:

    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

    0 讨论(0)
  • 2021-02-01 13:44

    I've found another one Assembly x86 syntax definition.

    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.

    0 讨论(0)
  • 2021-02-01 13:46

    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.

    0 讨论(0)
  • 2021-02-01 13:52

    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.

    0 讨论(0)
提交回复
热议问题