Code Warrior Syntax Coloring/Highlighting

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Code Warrior Syntax Coloring/Highlighting

4,239件の閲覧回数
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,246件の閲覧回数
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,246件の閲覧回数
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,246件の閲覧回数
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 件の賞賛
返信