Page 1 of 1

Is there a list of the colors/styles for the built-in editor?

Posted: 17 Aug 2025, 17:30
by Wolfie
Like 'def' and 'return' being a dark pink/purple, etc. Wondering where the codes are for that. 😁

Re: Is there a list of the colors/styles for the built-in editor?

Posted: 17 Aug 2025, 17:41
by rednoah
:idea: FileBot uses RSyntaxTextArea for the code editor component.

:arrow: The eclipse theme is used by default in light mode I believe:
https://github.com/bobbylight/RSyntaxTe ... clipse.xml

Re: Is there a list of the colors/styles for the built-in editor?

Posted: 17 Aug 2025, 22:43
by Wolfie
Thanks. Trying to configure Notepad++ to use similar colors when selecting "Filebot" as the language. (I know it's not an actual language, but it's just for cosmetics.)

Re: Is there a list of the colors/styles for the built-in editor?

Posted: 18 Aug 2025, 04:48
by rednoah
You could also try RText: A syntax highlighting, code folding, programmer's text editor written in Swing as text editor. That way you get the same colours because it's the same code that FileBot is using.

Re: Is there a list of the colors/styles for the built-in editor?

Posted: 18 Aug 2025, 06:04
by Wolfie
I'll take a look at it. I like Notepad++ because I can double click a word and it'll highlight all instances of it. Helps to show me how many times I'm using a variable assignment (for example) to know if it's worth it or not. Don't suppose you could work that into the Filebot editor? lol... Double click a word to highlight it and then highlight all instances of it. 😁

Re: Is there a list of the colors/styles for the built-in editor?

Posted: 18 Aug 2025, 12:31
by rednoah
I'll see about enabling the "Mark Occurrences" in the RSyntaxTextArea component we are using. I'm not sure as it will add complexity and make the format editor even more daunting to new users, but perhaps it's a good idea to just enable it for the next release and see what comes back from our users.

Re: Is there a list of the colors/styles for the built-in editor?

Posted: 18 Aug 2025, 21:11
by Wolfie
rednoah wrote: 18 Aug 2025, 12:31 I'll see about enabling the "Mark Occurrences" in the RSyntaxTextArea component we are using. I'm not sure as it will add complexity and make the format editor even more daunting to new users, but perhaps it's a good idea to just enable it for the next release and see what comes back from our users.
Is it out yet? Is it out yet?

lol

When you say "daunting," you just mean confusing or intimidating? Or is there a resource factor here as well?

Re: Is there a list of the colors/styles for the built-in editor?

Posted: 19 Aug 2025, 08:14
by rednoah
Wolfie wrote: 18 Aug 2025, 21:11 Is it out yet? Is it out yet?
Yep, you can try the latest revision and take it for a spin:
viewtopic.php?t=1609

Wolfie wrote: 18 Aug 2025, 21:11 When you say "daunting," you just mean confusing or intimidating? Or is there a resource factor here as well?
Purely intimidating to new and less technical users. "Mark Occurrences" might not scale well for very large source files, but a typical FileBot format is very very small by source code standards so you're unlikely to run into a bottleneck there.

Re: Is there a list of the colors/styles for the built-in editor?

Posted: 20 Aug 2025, 00:05
by Wolfie
Is there a way to make it only do it if the enter word is highlighted?

Re: Is there a list of the colors/styles for the built-in editor?

Posted: 20 Aug 2025, 04:23
by rednoah
Wolfie wrote: 20 Aug 2025, 00:05 Is there a way to make it only do it if the enter word is highlighted?
Unfortunately, not easily. The current behaviour is built-in behaviour that cannot be changed easily. I could try to turn the current behaviour on / off depending on wether something is selected. That said, I kinda like things getting highlighted as a type.

Re: Is there a list of the colors/styles for the built-in editor?

Posted: 20 Aug 2025, 04:30
by Wolfie
Oh geez, I created a monster. lol

Perhaps make it a toggle (off by default unless an option used in command line when launching it)? The implementation (not your fault) is annoying.

Re: Is there a list of the colors/styles for the built-in editor?

Posted: 20 Aug 2025, 08:21
by rednoah
I guess I’ll disable it again for upcoming builds. We probably disabled that feature for a reason in the first place a long time ago.