For those who need it, here it is a simple solution to obtain Assembly highlighting code in Gedit (that basic is not supported).
Download this file (asm-intel.lang) on your machine and copy it in the directory:
/usr/share/gtksourceview*.0/language-specs/
That's it!
Subscribe to:
Post Comments (Atom)
Thank you so much
ReplyDeleteYou're welcome!
DeleteYou can also put this into ~/.local/share/gtksourceview*.0/language-specs/ if you don't like modifying the system
ReplyDeleteSure
DeleteThanks a lot!
ReplyDeleteMy pleasure!
DeleteThanks!!
ReplyDeleteI'm starting to learn assembly and it's very helpful!! :)
(Sorry for my English)
do I need to restart my computer to enable it?
ReplyDeleteThank you so much for writing this. I am in an x86 assembly class and I wouldn't know where to find this otherwise.
ReplyDeletehi, I can't get permission to add this file to this folder. how do I solve this problem?
ReplyDeleteSimply use sudo, e.g.:
Deletesudo cp FILE /usr/share/gtksourceview*.0/language-specs/
I'm new with ubuntu.. I get this error :
Deletecp: missing destination file operand after `asm-intel.lang/usr/share/gtksourceview-3.0/language-specs'
how should I type this command?
You are using the cp command in the wrong way.
DeleteIt's very simple, go in the directory where you downloaded the asm-intel.lang file and type:
sudo cp asm-intel.lang /usr/share/gtksourceview*.0/language-specs/
That's what I did.. in some reason now it works!! Thanks a lot!! :))
DeleteNow, in gedit : tools-->highlight mode , I search this asm /assembly .. I can't find this.
DeleteI reopen the editor. should I do something else to get this updated?
*view--> highlight mode
DeleteI wasn't seeing the "asm-intel" highlight option either. Turns out after you copy, you need to set the permissions like the other *.lang files. I executed "sudo chmod a+r asm-intel.lang" in /usr/share/gtksourceview-3.0/language-specs and then I was able to see the asm-intel highlighting for my *.asm file. Thanks!
DeleteThis comment has been removed by the author.
ReplyDeleteHi, I did add this file asm-intel.lang to the right folder. but when I open gedit, under view-->highlight I can't find this feature. where it should be? how do I get this updated?
ReplyDeletetnx!
If that matters, I program in IA32 assembly
ReplyDeleteI don't have an answer for your problem
ReplyDeleteGenio divino del alma! ando joya!
ReplyDelete