You can get a list of all available syntax by pressing Ctrl + Space in the editor. A context menu with all available syntax will appear.
To move between items, use Up, Down, Left, Right keys. To select an item, click on it or press Enter. An example will be inserted.
LaTeX Math formulas
Block formulas
\\[ax^2 + bx + c = 0\\]
Inline formulas
\\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\\)
Sequence diagrams
:::sequence
```
User->Phone: Says Hello
Note right of Phone: Phone thinks\nabout it
Phone->User: How are you?
User->>Phone: I am good thanks!
```
:::
Graphviz diagrams
:::graphviz
```
digraph site {
home [label = "Home"];
prod [label = "Products"];
news [label = "News"];
cont [label = "Contact"];
home -> {prod news cont}
}
```
:::
Mermaid UML diagrams
Here we are just showing some examples.
State diagrams
:::uml
```
stateDiagram
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
```
:::
Sequence diagrams
:::uml
```
sequenceDiagram
autonumber
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```
:::
As Eleanor Roosevelt said:
> You must do the thing you think you cannot do.
Tables
| First Header | Second Header |
| - | - |
| Content from cell 1 | Content from cell 2 |
| Content in the first column | Content in the second column |
Gherkin syntax
Please enable the line-break option and the Gherkin syntax first before using this feature.
Scenario Outline: Password should be secure enough
Given a new password is being set
When I try to set the password to <new password>
Then the password should be considered <secure?>
Examples:
| new password | secure? | notes |
| - | - | - |
| p@swrd1; | :( | No uppercase character |
| Passwrd1 | :( | No special character |
| P@swrdl; | :) | - |
Learn more about the syntax here: .
Learn more about the syntax (Graphviz DOT) here: .