Formatting Source Code

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

Formatting Source Code

1,420 Views
Jep
Contributor I

Hello

I use Codewarrior 10.2 Special Edition and program in assembler not C.

I have been trying to utilize a number of commands listed under the SOURCE menu selection.

Specifically the Comment selections and the Format selection.

These selections are greyed out and so not useable. I have searched for answers in the help but have not found any and to be really honest, the help included almost always doesnt offer anything useable for anything I try to find out.

 

So I was wondering if anyone in the community would like to offer some advise on this.

 

Thank You

 

Jeff

Labels (1)
0 Kudos
Reply
4 Replies

1,305 Views
BlackNight
NXP Employee
NXP Employee

Hi Jeff,

many of the source formatting commands work on a source selection. So for example to use the comment command, select a piece of source in your source view and it is available.

I hope this helps,

Erich

0 Kudos
Reply

1,305 Views
Jep
Contributor I

Hi Erich

I have tried to select pieces of code and the menu doesnt offer me any selection under "Source" other than "Surround With" .. See image below

Source Menu.jpg

0 Kudos
Reply

1,305 Views
BlackNight
NXP Employee
NXP Employee

Hi Jeff,

I see: you are using assembly files.

Try the same with C/C++ files and you will see the difference.

Eclipse needs to parse the sources for the advanced options. And as every assembly language is different, assembly source files cannot be used with such advanced formatting features.

But normal edit commands like <shift>+<tab> of course are apply.

I hope this helps.

0 Kudos
Reply

1,305 Views
Jep
Contributor I

Yes Erich ... My original post said I program with assembler not C ... So .. no point in trying C and seeing what happens.

I have used many other assembler IDE's and they had formatting options or at the VERY least an option to comment out selected code.

I guess unless there is any other reply to this thread that for some reason formatting isnt possible with assembly files.

0 Kudos
Reply