1 1. Basic Hylia Syntax
conzer12 edited this page 2024-12-06 06:23:19 +00:00

Hylia is very similar to HTML, but has a few different concepts. Hylia files end with ".hy". The following is a basic Hylia syntax.

<hylia>
    <element name="head">
        <title>Hello Hylia!</title
    </element>
    <element name="body">
        <h1>Hello Hylia!</h1>
    </element>
</hylia

In Hylia, your main items are treated as Elements. If something is not inside an element, it will be ignored. To compile this code, save it to a file and run hylia yourfile.hy index.html And test it in a browser!