gedit syntax highlighting for assembler files (*.asm)

Drew Noakes picture Drew Noakes · Jun 8, 2013 · Viewed 20.1k times · Source

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

How can I add this support for this language?

Answer

Drew Noakes picture Drew Noakes · Jun 8, 2013

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.