Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Turn off dead code option

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
snow

Bascom Member



Joined: 28 Jun 2005
Posts: 212
Location: Ashburton / Mid Canterbury / New Zealand

newzealand.gif
PostPosted: Wed Sep 09, 2020 10:46 pm    Post subject: Turn off dead code option Reply with quote

Hi
I'm writing code in a separate module. Since this code is called from another module the code in the IDE is shown as a dead code formatted text.
Is there a way to turn this option off so the code format is the correct colored layout like in a master module??

The only way i have found it to call the main loop from its self and remarked out for compiling.. just a niggle that is all



Code:

.....
Const PanFast=4
Const PanSlow=30
Const TiltFast=4
Const TiltSlow =30

HomeAxis  '<======= added for dead code formatting and remarked out for compiling


Sub HomeAxis()
    ' Sub coding...
End Sub

................
 


Cheers
Snow

(BASCOM-AVR version : 2.0.8.3 )
Back to top
View user's profile
JC

Bascom Member



Joined: 15 Dec 2007
Posts: 627
Location: Cleveland, OH

usa.gif
PostPosted: Thu Sep 10, 2020 12:57 am    Post subject: Reply with quote

I think this is what you are asking for:

In the Bascom IDE, Options Tab:

Select Environment

Then Un-select "Syntax highlight"

Then click OK

JC

Edit: Embarassed

See the correct answer, below!

JC


Last edited by JC on Thu Sep 10, 2020 2:35 pm; edited 1 time in total
Back to top
View user's profile Visit poster's website
snow

Bascom Member



Joined: 28 Jun 2005
Posts: 212
Location: Ashburton / Mid Canterbury / New Zealand

newzealand.gif
PostPosted: Thu Sep 10, 2020 2:12 am    Post subject: Reply with quote

Thanks. Ill look into it
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Thu Sep 10, 2020 8:43 am    Post subject: Reply with quote

this forum has a search function.

anyway, just look under the EDIT menu.
It is 'SHOW DEAD CODE' and 'SHOW EXCLUDED CODE'
just un check these option to turn off the checking.

So why is it there under the menu?
Well you can put the button in a toolbar that way.
The whole idea about this function is to enable it when your code is done. So you can review it.
So this requires a simple enable/disable. Not an option.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum