Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Automatic formatting of the code

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

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Thu Jan 04, 2018 8:36 am    Post subject: Automatic formatting of the code Reply with quote

Happy new year to all!

I reinstalled the bascom but the automatic formatting of the code in the editor does not work anymore ...

how can I solve it?

(BASCOM-AVR version : 2.0.8.1 )
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Thu Jan 04, 2018 10:28 am    Post subject: Reply with quote

You come up with a problem, but there is nothing to support it.
No screen shot of the settings, no xml settings file , no test file or steps how to reproduce.
Did you reboot after the installation?
'dont change case' should be unchecked and 'reformat code' should be checked.
I tried it and it works as usual.

_________________
Mark
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Thu Jan 04, 2018 10:52 am    Post subject: Reply with quote

I have activated 'reformat code' and now it is better but some liee of code in italics ...?
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Thu Jan 04, 2018 11:08 am    Post subject: Reply with quote

dont you read any of the release notes Shocked
please reead the history or 'what is new' in the help.

_________________
Mark
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Thu Jan 04, 2018 11:28 am    Post subject: Reply with quote

dear Mark I read the release notes ...

this: "- The editor supports jump to implementation: hold CTRL key and hover mouse over an identifier.

   Use CTRL + BACKSPACE to jump back "

but it does not speak of italic written or wrong ...?
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Thu Jan 04, 2018 11:52 am    Post subject: Reply with quote

change something if I change the "dead code color" settings ...

I noticed that if I change the line a few times it is displayed correctly ...
?
Back to top
View user's profile Visit poster's website
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 971

poland.gif
PostPosted: Thu Jan 04, 2018 12:34 pm    Post subject: Reply with quote

Unused code is a "Dead Code" please disable this function in EDIT->Show Dead Code if you dont need it Very Happy

"Svocb Alias Pinc.1" became "not dead" if somewhere in the code you use this alias. For example "If Svocb = 0 Then.."
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Thu Jan 04, 2018 12:48 pm    Post subject: Reply with quote

OK thanks...

but how do you explain that when I changed lines, was it okay?
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Thu Jan 04, 2018 1:31 pm    Post subject: Reply with quote

After not editing for some seconds, on the background the code is processed and then when turned on, dead code is shown.
This option is put under the EDIT menu since these options are intended to be used when you are done with the project.
When you activate it during editing the project you will experience recoloring of the code which can be annoying.

_________________
Mark
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Thu Jan 04, 2018 2:06 pm    Post subject: Reply with quote

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