Color Settings
Customize syntax highlighting colors
You can customize all Circom syntax highlighting colors to match your preferences or color scheme.
Accessing Color Settings
Section titled “Accessing Color Settings”- Open Settings (or Preferences on macOS)
- Navigate to Editor → Color Scheme → Circom
Customizable Elements
Section titled “Customizable Elements”Signal Types
Section titled “Signal Types”The input and output keywords.
Default: Blue-violet (#879DE0)
signal input value; // "input" is highlightedsignal output result; // "output" is highlightedConstraint Operators
Section titled “Constraint Operators”The constraint and assignment operators specific to Circom.
Default: Teal (#4EC9B0)
c <== a * b; // "<==" is highlighteda * b === c; // "===" is highlightedTemplate Modifiers
Section titled “Template Modifiers”The parallel, custom, and bus keywords.
Default: Yellow (#BBB529)
template parallel FastAdder() { } // "parallel" is highlightedtemplate custom Gate() { } // "custom" is highlightedDefault Color Values
Section titled “Default Color Values”| Element | Hex Code | Example |
|---|---|---|
| Signal Types | #879DE0 | input, output |
| Constraint Operators | #4EC9B0 | ===, <==, ==> |
| Template Modifiers | #BBB529 | parallel, custom, bus |
Inheriting from Language Defaults
Section titled “Inheriting from Language Defaults”Other elements inherit from the IDE’s language defaults:
- Keywords: Uses your scheme’s keyword color
- Comments: Uses your scheme’s comment color
- Strings: Uses your scheme’s string color
- Numbers: Uses your scheme’s number color
- Brackets: Uses your scheme’s bracket color
Saving Custom Schemes
Section titled “Saving Custom Schemes”To save your customizations:
- Click Save As… in the Color Scheme settings
- Give your scheme a name
- Your customizations are preserved in the new scheme
Resetting to Defaults
Section titled “Resetting to Defaults”To reset Circom colors to defaults:
- In the Circom color settings
- Right-click any element
- Select Reset to restore the default color
Or reset all colors by selecting your scheme’s parent and choosing Restore Defaults.