Sublime Forum

Syntax colors for assembly programmer

#1

Hi guys ,I am learning IAR assembly language I am super new to sublime text and have tried reading and understanding your syntax definition page on syntax highlighting but it’s very hard to understand(i.e doesnt seem to lead me to the actual “how you change this colour” part) .I tried downloading an assembly code theme i think from package control and it sort of works, but unfourtunately since not all assembly code is the same, it still leaves some important syntax un-highlighted. Is there a quick and simple way to just change the colour of certain words in my code so they stand out when i see my code in sublime text ? thanks

0 Likes

#2

At the most basic, I would find the list of keywords in your current tmLanguage file and add the new keywords that you want to it.

0 Likes

#3

Which package did you try?

*] sublimeassembly https://forum.sublimetext.com/t/enhanced-assembly-code-highlighting/9095/1
*] x86-assembly-textmate-bundle https://github.com/foxostro/x86-assembly-textmate-bundle

0 Likes

#4

I got to the tmlanguage file and did a quick ctrl+f search for any code that had the word “color” in it but could not find anything to change there

[quote=“daryltucker”]Which package did you try?

*] sublimeassembly sublimetext.com/forum/viewt … =5&t=11327
*] x86-assembly-textmate-bundle github.com/foxostro/x86-assembl … ate-bundle[/quote]

I tried the one for ARM assembly and installed it with package control, the ones you gave above for x86 I could try but I doubt they would cover everything that IAR A430 assembly would require in particular, to be highlighted

0 Likes

#5

By “keywords” I meant the things that it’s highlighting, not the word “color”. Maybe try “mov”? “jmp”? I don’t know how your assembly language works.

0 Likes