Is there any way to add more syntax highlight color options in the IDE? The available options are a bit lite for what I prefer. The autocomplete seems to know what my custom classes, etc. are. Is there a way to have the IDE also allow me to set a syntax highlight color?
I guess I’m just a bit spoiled by Flutter/Dart and the amazing color options.
Thanks!
You can change the syntax highlighting colors in the Preferences / Settings, but you cannot add token types.
(I also wrote a syntax highlighter for Xojo code in BBEdit)
2 Likes
Thanks for confirming that I was not missing the obvious.
Would this be something that is difficult to add to the IDE? Could it be done through a script like the Reformat Code Script?
The autocomplete seems to know what my custom classes, etc.
I am trying to get clear in my own mind what you are asking. The existing “things” that the IDE will colorize is very flexible. They can be assigned any color. But, as I understand your question, you want more “things”, what Parnell is calling “token types”, not more colors.
One example is custom classes. Perhaps a color for that. Then you have an “etc.” I am curious as to what other “things” you would like to see colored.
I ask because I would like to see the ability to colorize variables that have been locally declared in the method. It can be hard for me to indentify “Local Variables” at a glance. I come from a language where this was the norm and I find it very helpful. What are global variables? What are local variables?
I would love to see this capability added to Xojo.
2 Likes
Robert,
You nailed it. It’s more “token types” that I was curious about getting access to. The “etc.” I mentioned could be any “token type” the IDE recognizes.
This is not meant to be a complaint, just curious as to “can it be done”.