Code Warrior Syntax Coloring/Highlighting

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Code Warrior Syntax Coloring/Highlighting

4,240 次查看
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
标签 (1)
0 项奖励
回复
3 回复数

1,247 次查看
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 项奖励
回复

1,247 次查看
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 项奖励
回复

1,247 次查看
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 项奖励
回复