汇编程序文件的gedit语法高亮显示(* .asm) [英] gedit syntax highlighting for assembler files (*.asm)
本文介绍了汇编程序文件的gedit语法高亮显示(* .asm)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
默认情况下,gedit不会语法突出显示 .asm
文件.
By default, gedit doesn't syntax highlight .asm
files.
如何添加对这种语言的支持?
How can I add this support for this language?
推荐答案
以下步骤就足够了.
wget http://www.carminebenedetto.net/_downloads/asm-intel.lang
sudo cp asm-intel.lang /usr/share/gtksourceview-3.0/language-specs/
请注意,将 .lang
文件复制到的确切文件夹取决于您的版本.您可能改用了 gtksourceview-2.0
,甚至还有其他东西.在我的计算机上,我同时拥有2.0和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.
这篇关于汇编程序文件的gedit语法高亮显示(* .asm)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文