Wish Set color of parameters in the code

Theera

Expert
Licensed User
Longtime User
Refer to this I've studied the code from the expert's example. I wish that the floattextfield which is parameter should changed having color (isn't white) when we read the code.

The best of regards.
 

Sagenut

Expert
Licensed User
Longtime User
I think that I didn't understood clearly.
Which parameters would you like to modify?
 

Theera

Expert
Licensed User
Longtime User
I think that I didn't understood clearly.
Which parameters would you like to modify?
I think that the color of parameters shouldn't be white. (i.e. it should be light green color which is different from the methods) please see the line of codes at12,13,14,15( FloatTextField parameters
should be highlighted)
 
Last edited:

Sagenut

Expert
Licensed User
Longtime User

Do you mean that the word FloatTextField should have the same color of Mainform?
Mainform has that color because it's a Global Variable, declared in Process_Global.
So it can be called from any point of the code.
FloatTextField instead is a Local variable.
It will exist and can be used only inside that Sub.
I think that is correct to have them highlighted with different colors to understand the difference.
Hoping that this time I understood the question.
I agree that it could be nice to have local variable with some color different from white and different from Global variables.
 
Last edited:

Sagenut

Expert
Licensed User
Longtime User
You can find the Themes folder inside the installation folders of B4X products.
So you could create your own color scheme.
Just I didn't found (or I didn't understood) which one should be edited to change local variables color.
 

Theera

Expert
Licensed User
Longtime User
View attachment 159284
Do you mean that the word FloatTextField should have the same color of Mainform?
I mean that the word FloatTextField as local variable should have the colored highlighted , but has the different color of Mainform.
 

Sagenut

Expert
Licensed User
Longtime User
I mean that the word FloatTextField as local variable should have the colored highlighted , but has the different color of Mainform.
I agree.
Unluckily it looks like it's not possible to change that color actually even modifying the color scheme file.
But I could be wrong.
 

Sagenut

Expert
Licensed User
Longtime User
Local variables are interpreted as Identifier (for color scheme).
So the result is this if you set a different color

Not the best option.
 

Theera

Expert
Licensed User
Longtime User
Local variables are interpreted as Identifier (for color scheme).
So the result is this if you set a different color
View attachment 159287
Not the best option.
I think it should changed only the word of local variables which are in sub modules so that detecting to be local variables.
 

Sagenut

Expert
Licensed User
Longtime User
I think it should changed only the word of local variables which are in sub modules so that detecting to be local variables.
Such a change can be made only from @Erel internally to the editor.
I agree with your Wish and I support it with a +1.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…