Command is way of automate repetative tasks inside Oxygen Builder Commands in the most cases are made of two things:
- 1.OPERATOR - this part indicate which action
- 2.ARGUMENT - what action should do
In Example 1 we can see command for adding one class. In Workspace dot is special character which suggest that class with followed-up name should be added to element.
All Recoda Workspace commands have operators. Imagine operators as languge between you and Oxygen. When we designed it we were heavily inspired with emmet. Our opinion is that emmet syntax is superb and industry standard so we wanted to adopt something logical, easy to write but with mind in that this is Oxygen specific so there are differences because emmet is string manipulation tool and command is Oxygen manipulation thing.
Table 1: List of command-line operators
If you are adding elements one of following operators (>, +, or ^)should be used before element argument.
How it works?
You write some name from table an it will add Oxygen element with custom tag. Some elements has full version and shorthand version, you can use both it will do same.
In Table 2 (below) all supported elements are listed. If you want other element you can write HTML tag as argument and command-line will add DIV element with specified custom-tag in argument. (eg >aside = add div element with custom tag aside)
Table 2: List of command-line elements