# Changing Processing IDE color scheme

**URL:** <https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244>\
**Category:** Processing\
**Created:** [January 6, 2019, 9:34am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244 "2019-01-06T09:34:51Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![marky04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/marky04/32/3137_2.png) [@marky04](https://discourse.processing.org/u/marky04)\
**Post date:** [January 6, 2019, 9:34am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/1 "2019-01-06T09:34:51Z")

</div>

Hello, I wanted to change Processing’s color scheme but being a sort of newbie to coding, I’m not sure what some of the tokens in the preferences.txt file correspond to. Here is the list for all token types I found in Processing.

```auto
editor.token.comment1.style=#666666,plain
editor.token.comment2.style=#666666,plain
editor.token.function1.style=#006699,plain
editor.token.function2.style=#006699,plain
editor.token.function3.style=#669900,plain
editor.token.function4.style=#006699,bold
editor.token.invalid.style=#666666,bold
editor.token.keyword1.style=#33997e,plain
editor.token.keyword2.style=#33997e,plain
editor.token.keyword3.style=#669900,plain
editor.token.keyword4.style=#d94a7a,plain
editor.token.keyword5.style=#e2661a,plain
editor.token.keyword6.style=#33997e,plain
editor.token.label.style=#666666,bold
editor.token.literal1.style=#7D4793,plain
editor.token.literal2.style=#718a62,plain
editor.token.operator.style=#006699,plain

```

What are the 4 function types and why is one of them of a different color? What are all the keywords? Please help me with them (all if possible). If I manage to create the file then I will post it here as well if anyone wants it. Thank you very much!

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 6, 2019, 11:11am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/2 "2019-01-06T11:11:55Z")

</div>

no idea, but you are aware of

> <https://github.com/jeffThompson/DarkProcessingTheme_3.0/blob/master/theme.txt>

> **[Dark Theme for PDE](https://github.com/processing/processing/wiki/Dark-Theme-for-PDE)**
>
> Source code for the Processing Core and Development Environment (PDE) - processing/processing

> <https://gist.github.com/hamoid/10a6ba90af15fd3d4e80>

so i think the

> preferences.txt

file is not supposed to be changed for the theme???

---

<div class="post-metadata">

**Author:** ![marky04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/marky04/32/3137_2.png) [@marky04](https://discourse.processing.org/u/marky04)\
**Post date:** [January 6, 2019, 11:47am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/3 "2019-01-06T11:47:27Z")

</div>

Ah sorry my bad, what I meant was color scheme, changing the code colors as well. I am aware of the dark theme and currently have it on my PC (but I don’t use rn) and the theme.txt file being able to change some of the IDE’s colors but I want to change the color scheme. Sorry for the confusion. Some people do call it theme though.  
“`# Code colors can be adjusted in the preferences.txt file`”

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 6, 2019, 11:51am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/4 "2019-01-06T11:51:20Z")

</div>

good, i don’t know if you should search on about some documentation for this settings,  
or just test one by one what changes,

you are right, would be good to know!

---

<div class="post-metadata">

**Author:** ![marky04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/marky04/32/3137_2.png) [@marky04](https://discourse.processing.org/u/marky04)\
**Post date:** [January 6, 2019, 11:56am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/5 "2019-01-06T11:56:47Z")

</div>

I was planning to do that once, but it seemed the process would be wayy to tedious for me at the moment. With school rolling around as well. I could work on it at some point though.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 6, 2019, 12:07pm UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/6 "2019-01-06T12:07:50Z")

</div>

> [@marky04](#):
>
> editor.token.function1.style

for example:  
i try to play this  
[https://github.com/processing/processing/search?q=editor.token.function1.style&unscoped\_q=editor.token.function1.style](https://github.com/processing/processing/search?q=editor.token.function1.style&unscoped_q=editor.token.function1.style)

could help to understand where it is used in the processing source code?

> <https://github.com/processing/processing/blob/master/app/src/processing/app/syntax/Token.java#L63>

test:  
for the 4 functions i found for words what changed:  
( well that does not say much about the grouping… )

```auto
// test preferences.txt

void myFunction() {             
  for ( int i = 0; i<3; i++) { // editor.token.function3.style=#669900,plain ! for ok
  println(); // editor.token.function1.style=#006699,plain ! println ok
  }
}

void setup() { // editor.token.function4.style=#006699,bold ! setup ok
  size(100, 100); // editor.token.function2.style=#006699,plain ! size ok
  myFunction();
}

```

---

<div class="post-metadata">

**Author:** ![marky04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/marky04/32/3137_2.png) [@marky04](https://discourse.processing.org/u/marky04)\
**Post date:** [January 7, 2019, 2:41pm UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/7 "2019-01-07T14:41:09Z")

</div>

Thank you so much for that. Good leap forward, I would say, I had a gander at it again with some added sources and a reference to Zenburn’s source code but it’s still very confusing to say the least. I’ve gotten halfway through but I still get stuck at what keywords 4 and 6 are and function 1, 3 and 4. Not to mention Processing takes a while to start on my laptop. I will try again tomorrow and I will post my newfound sources as well. Maybe my reference to Zenburn wasn’t clear to me. Only time will tell.

---

<div class="post-metadata">

**Author:** ![marky04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/marky04/32/3137_2.png) [@marky04](https://discourse.processing.org/u/marky04)\
**Post date:** [January 8, 2019, 7:55am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/8 "2019-01-08T07:55:49Z")

</div>

I’ve been able to finish it, am in school however but I’ll be sending the file and some snapshots as well. It isn’t 100 percent accurate. I mean there were no colors I could derive from Zenburn for Processing’s built-in variables and functions as they don’t exist in pure java. Just had to use a few replacements. Painful process though. I hope that once I’m at least a bit better with coding I can create my own program where you could load a certain type of color scheme file and it would change the preferences and theme text files just like that. Thank you very much @kll

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 8, 2019, 8:03am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/9 "2019-01-08T08:03:18Z")

</div>

good, pls put your whole THEME + EDITOR color replacement  
to github… and link it here.  
a screenshot might be intriguing.

---

<div class="post-metadata">

**Author:** ![marky04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/marky04/32/3137_2.png) [@marky04](https://discourse.processing.org/u/marky04)\
**Post date:** [January 8, 2019, 10:57am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/10 "2019-01-08T10:57:16Z")

</div>

Hehe… I don’t know how to do that

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 8, 2019, 11:08am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/11 "2019-01-08T11:08:34Z")

</div>

ok, no problem, if you need no public repositories … no need to make a account.

---

<div class="post-metadata">

**Author:** ![marky04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/marky04/32/3137_2.png) [@marky04](https://discourse.processing.org/u/marky04)\
**Post date:** [January 10, 2019, 5:47am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/12 "2019-01-10T05:47:04Z")

</div>

Sorry it took a while…

 ![Screenshot%20(108)](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/bf3b7b6caaf61620e03fb46338c68d4d0d96c2f4.png)

> **[marky0470/ultra-neo-desk-top](https://github.com/marky0470/ultra-neo-desk-top)**
>
> Zenburn Color Scheme for Processing. Contribute to marky0470/ultra-neo-desk-top development by creating an account on GitHub.

For/While loops don’t have unique colors outside of the Processing IDE so I had to improvise and get a different color that matched the theme’s palette, as well as Processing functions and variables. I feel like they look good though. I might work on some of my other favorites, like [hamstu](https://studiostyl.es/schemes/hamstu), but this is it for now, hope you guys enjoy! If you guys have any suggestions on changes let me know!

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 10, 2019, 5:53am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/13 "2019-01-10T05:53:54Z")

</div>

thanks,

when you look at

> **[jeffThompson/DarkProcessingTheme\_3.0](https://github.com/jeffThompson/DarkProcessingTheme_3.0)**
>
> A dark theme for Processing 3. Contribute to jeffThompson/DarkProcessingTheme\_3.0 development by creating an account on GitHub.

  
you see he also play with the ?icons? for footer status toolbar  
you did there changes too?

oh yes, the next level would be a theme switcher in preferences.txt …

---

<div class="post-metadata">

**Author:** ![marky04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/marky04/32/3137_2.png) [@marky04](https://discourse.processing.org/u/marky04)\
**Post date:** [January 10, 2019, 5:57am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/14 "2019-01-10T05:57:27Z")

</div>

I didn’t change the GUI, but I’ve thought of it, maybe some other time, I just have to find the proper colors to use and all that jazz. Thanks!

There’s news for the theme switcher? Wew my prayers have been answered haha

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 10, 2019, 6:19am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/15 "2019-01-10T06:19:55Z")

</div>

sorry Mark, but i not think that the full

> preferences.txt

is supposed to be published/distributed, like i think it contains your _ **unique update id .** _…  
may be you cut out just the changed color part? and post it at the github?  
( and a user might edit / replace manually? ( oh this goes wrong ?? )

// or just forget this comment, sorry i talked you into this!

---

<div class="post-metadata">

**Author:** ![marky04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/marky04/32/3137_2.png) [@marky04](https://discourse.processing.org/u/marky04)\
**Post date:** [January 10, 2019, 7:51am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/16 "2019-01-10T07:51:03Z")

</div>

Sorry, is there something wrong with it? I’ve downloaded the preferences.txt and tried it and it seemed ok. The edits I made were directly on github.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 10, 2019, 8:00am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/17 "2019-01-10T08:00:31Z")

</div>

> [@marky04](#):
>
> Sorry, is there something wrong with it

it is not wrong, as it works ( ok the sketchbook path fails and creates a new sketchbook directory and i have to adjust my original one and delete the just created… )

what i wanted to say is like it contains private data…  
_and if everyone use your preferences.txt_  
_foundation would be very angry ( as it sees only one user doing updates ))_

//\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
one private comment to your color settings,that

```auto
int, for if else ... and the 
// comment

```

have ?nearly? same color is not nice

---

<div class="post-metadata">

**Author:** ![marky04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/marky04/32/3137_2.png) [@marky04](https://discourse.processing.org/u/marky04)\
**Post date:** [January 10, 2019, 8:31am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/18 "2019-01-10T08:31:29Z")

</div>

I don’t really understand, but do you think it would be better if I just changed the txt files to contain only the edited parts and just tell the user to copy/paste it there?  
And sure I’ll try to make changes to the syntax coloring to make it have more contrast, but that is basically what Zenburn is… a “low-contrast color scheme”.  
Could you please elaborate on the private data though?

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 10, 2019, 11:47am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244/19 "2019-01-10T11:47:50Z")

</div>

> [@marky04](#):
>
> And sure I’ll try to make changes to the syntax coloring to make it have more contrast, but that is basically what Zenburn is… a “low-contrast color scheme”.

understand, like it is kind of relaxing…  
but the

```auto
syntax highlighting

```

actually has the opposite idea, to catch your eyes on the program structure…  
so it was my idea to bring

> // comments  
> /\* and other info \*/

more to the background  
but as i say, just a private remark.

//\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
for the other thing:

> distributing/publishing a preferences.txt file

i hope a expert can jump in.

> [@](#):
>
> do I need any licenses or any legal stuff to post the code?

no,no, not worry,

> [@](#):
>
> I also changed it so that it only showed the altered parts now, to also make it easier to edit in the future.

yes, might be better.

but actually i think the whole thing could be discussed  
as a kind of processing 4.0 wish.

- -a- move the editor color settings out of preferences.txt
- -b- into the theme.txt  
it is now obvious to me that background and text color have to work together.
- -c- move the theme.txt file to the “user” directory where preferences is
- -d- make a file select entry in preferences.txt so we can hold several theme.txt files
- -e- allow IDE /File/Preferences to select one of that files
