Code Warrior Syntax Coloring/Highlighting

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code Warrior Syntax Coloring/Highlighting

3,444 Views
Tangesi
Contributor I
Dear all
 
I want to make the Metrowerks CodeWarrior for ADS 1.2 Suite, able to highlight the assembler syntax.
I have tried my hand at working out the set-up for a customized syntax highlighting but, nothing worked at all.
Somewhat, some of you may help me?
 
TIA
Angelo
Labels (1)
0 Kudos
3 Replies

451 Views
J2MEJediMaster
Specialist I
The only thing I've seen that works is to go to the project's settings panel (Edit | YourProjectNameHere) and then in the Custom Keywords for the editor, add the assembly instructions as keywords. Then, change the color for all of the entered keywords. It's a pain, but once you've got it done, you can save the export this info to a file that other copies of CodeWarrior can import and have the same display capability.

---Tom

0 Kudos

451 Views
Tangesi
Contributor I
Ok Tom.
I did that way and now I am getting assembler keywords coloured.
In spite of that, I couldn't work out adding the character as ' ;' in keyword field. I figured out the reason for.
Perhaps, could it be existing a way to modify default 'C-like' configuration: just for getting it the same way my customized/assembler comment-like. Could not it?
In fact the C/C++ source is recognized properly.
 
--Angelo
 
0 Kudos

451 Views
J2MEJediMaster
Specialist I
I tried coloring the keyword ___asm to highlight the start of assembly language sections, but that string refused to change color. The reason: it's actually a macro and so the IDE colors it as a macro. The semicolon falls into the same situation. Since it represents an end-of-line character for C, the IDE colors it as such, even though it can be a comment character for assembly language. I don't see any way around that.

---Tom

0 Kudos