# CanvasTextField.Syntax enum

Namespace: [Grasshopper2.UI.Canvas](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.canvas.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public enum CanvasTextField.Syntax
```

The broad syntactic roles a character can play inside a field. Each field classifies its own characters, since different notations disagree about what a given character means - a '*' is a wildcard in one and a multiplication in another - but they all draw the same roles in the same colours.

## Values

| Name | Value | Description |
| --- | --- | --- |
| Plain | 0 | Regular text, drawn in the default colour. |
| Number | 1 | Part of a numeric literal. |
| Operator | 2 | An operator, wildcard or other active symbol. |
| Separator | 3 | A separator, bracket or range symbol. |
| Text | 4 | Inside a quoted literal, the quotes themselves included. |
