processing / Processing-Hour-Of-Code

Repository for an interactive one-hour Processing tutorial.
hello.processing.org
56 stars 14 forks source link

Code Highlighting #26

Open scottgarner opened 11 years ago

scottgarner commented 11 years ago

There are two factors at play here.

First, I've created an Ace editor mode for Processing (adapted, really) that has regular expressions to match ranges of characters and mark them with CSS classes. It does other things, too, that I don't understand, but we'll ignore that. If we want to change what does or doesn't get highlighted, those changes happen here:

/js/vendor/ace/mode-processing.js

Second is the Ace editor theme for Processing, which dictates the actual colors:

/js/vendor/ace/theme-processing.js

Things should be reasonably sane for now, but if we want to try to match the actual IDE colors, this is the place to do it. To me this is the lowest priority issue.

scotthmurray commented 11 years ago

Agreed, low priority. But still, thanks for looking into this.