Full language support for the Luz programming language.
Keywords, strings, format strings, numbers, comments, operators and more are all highlighted.
- All built-in functions (
write,len,append,sqrt,mean...) - All keywords (
if,while,for,class,function...) - Variables, functions and classes defined in the current file
Syntax errors are underlined in red as soon as you save the file.
Hover over any built-in function to see its signature and description.
| Prefix | Expands to |
|---|---|
function |
Function definition |
if |
If statement |
ife |
If / else |
ifee |
If / elif / else |
while |
While loop |
for |
For range loop |
fore |
For each loop |
class |
Class definition |
classe |
Class with inheritance |
method |
Class method |
attempt |
Attempt / rescue block |
fn |
Lambda short form |
fnb |
Lambda long form |
import |
Import statement |
fs |
Format string |
For error detection to work, Luz must be installed and available in your PATH.
Download the installer at elabsurdo984.github.io/luz-lang/download.
| Setting | Default | Description |
|---|---|---|
luz.executablePath |
luz |
Path to the luz executable |
import "math"
class Circle {
function init(self, radius) {
self.radius = radius
}
function area(self) {
return PI * self.radius * self.radius
}
}
c = Circle(5)
write($"Area: {round(c.area(), 2)}")