I see in several macros of others they use colors for the actions. Makes it very readable.
I was wondering if there are some conventions for this. Noticed that quite a lot use green for comments for instance.
Hey Gerrit,
No formal conventions.
But I often use Aqua for Comments and Orange for User-Settings.
-Chris
Thanks Chris. Good to know.
@Gerrit, as Chris says, no conventions, and I don't even see a small concensus on what colors to use. I consistently use:
Green -- comments
Magenta -- Designed for Macro user to change
In general, I have this a part of most of my public macros:
ACTION COLOR CODES
To facilitate the reading, customizing, and maintenance of this macro, key Actions are colored as follows:
- GREEN -- Key Comments designed to highlight main sections of macro
- MAGENTA -- Actions designed to be customized by user
- YELLOW -- Primary Actions (usually the main purpose of the macro)
- ORANGE -- Actions that permanently destroy Variables or Clipboards,
OR IF/THEN and PAUSE Actions
Thanks @JMichaelTX. Have added the macros "Set Color of KM Action" and "Set NAME of KM Action".
Together it makes the macro very readable. Although I use KM for many year now, I never have learned so much the last couple of months by visiting this form. Learning by studying other macros is great to get out the most of Keyboard Maestro.