gedit syntax highlighting for assembler files (*.asm)
Asked Answered
G

3

10

By default, gedit doesn't syntax highlight .asm files.

How can I add this support for this language?

Gur answered 8/6, 2013 at 20:12 Comment(0)
G
25

The following steps should be enough.

wget http://www.carminebenedetto.net/_downloads/asm-intel.lang
sudo cp asm-intel.lang /usr/share/gtksourceview-3.0/language-specs/

Note that the exact folder to copy the .lang file to depends upon your version. You may have gtksourceview-2.0 instead, or even something else. On my machine I had both 2.0 and 3.0, and copied the file into each one's language-specs subfolder.

Gur answered 8/6, 2013 at 20:12 Comment(2)
It looks like there's a newer version of this file in the the gtksourceview list of additional languages.Muzzleloader
there is also github.com/cdclaxton/gedit-assembly-language-syntax-highlighterDasilva
A
9

Apparently the language definition provided on the extra language definitions page is not working with gtksourceview-4.0
I changed the file a bit and it works for me. The updated version can be found here.
Also here is a version for the 8086 (I have limited knowledge when it comes to XML and gtksourceview, feedback is welcomed)

Alongshore answered 10/12, 2020 at 20:25 Comment(0)
V
1

I tried the suggested links but to no avail. However the package found in link below worked for me.

https://gist.github.com/mrbesher/5c98da1c220d10e2aba8276554d3456c

Vibrio answered 27/5, 2022 at 12:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.