We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

MarkupL

From Esolang
Jump to navigation Jump to search
Logo

MarkupL is the gaian HTML, but it's more of a beginer-freindly version of Interactive Script so that there would be more webdevs in Gaia. The language was created by the Interactive Script team

Syntax

This section is still a work in progress. It may be changed in the future.

MarkupL syntax

MarkupL doesn't have a paragraph tag. Which isn't that big of a deal since you can literally just add a end of line tag (or |el) to make a new line or use the id> tag:

­ 1: id="smth">"a"|el

translated into html:

<p id="smth">a</p>

And don't forget to add another virtic (|) if you need to add another string next to it, otherwise it won't work:

­ 1: "a"|el|"b"

translated into html:

<p>a</p>b

MarkupL add-ons

Stuley:

­ 1: <style>...|}

Interactive Script:

­ 1: <behave>...|}


Examples

Hello, world!

­ 1: "Hello, world!"

translated into html:

Hello, world!

Cat program

­ 1: <field type="multi" id="i">input</field><button text="submit" pushaction="main{}">|el|id="o">""
­ 2: <behave>make main[]{i=get("i")|set("o".ML,i)}|}

translated into html:

<script>function main(){i=document.getElementById("i").value;document.getElementById("o").innerHTML=i}</script>
<textarea id="i" placeholder="input"></textarea><button onclick="main()">submit</button><br>
<textarea id="o" placeholder="output" readonly></textarea>