diff --git a/src/css/main.css b/src/css/main.css index a4a7342..06f6265 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -73,7 +73,8 @@ code { .multiCode p { margin: 0; align-self: flex-start; - color: #D63384 + color: #D63384; + font-family: monospace; } code { @@ -93,6 +94,7 @@ code { code p { margin: 0; align-self: flex-start; + font-family: monospace; } samp { @@ -108,3 +110,9 @@ samp { flex-direction: column; margin: 0; } + +.highlight { + color: rgb(61, 61, 61); + font-size: 12px; + +} \ No newline at end of file diff --git a/src/getting-started.html b/src/getting-started.html index 2f4a18b..5f3a852 100644 --- a/src/getting-started.html +++ b/src/getting-started.html @@ -27,6 +27,8 @@
Simple introduction to understanding how variables work and how you define them and how you use them
+You can define a variable like this:
+*mut type name = value
+ (* = optional)
+type can be any of these: string, int, float, bool but also custom types (more on them here)
name can be any letters, numbers but not any "-" or " " in them
mut is used to say if the variable is modifiable, basically saying if you can change the value or not. To make a variable editable you do: mut type name = value
if not its just type name = value
An example of defining a variable called name with the value "Kevin":string name = "Kevin"
To use a variable you can simple just call its name, example: +
+use writeln from @std.io + +string name = "Kevin" +writeln(name)+
To define a editable variable you can do:
+use writeln from @std.io +mut age = 18 +writeln("I am %{age}") +++age +writeln("I am %{age}") ++