Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Hypercontent Distribution Language: Difference between revisions

From Amaranth Legacy, available at amaranth-legacy.community
Content deleted Content added
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 19: Line 19:
<
<
content>
content>
parag>HLLO
parag>attr>.red:.extra-class;HLLO
EXTRA TEXT;
EXTRA TEXT;
list>attr>unordered:.red:.extra-class;
list>attr>unordered:.red;
list-entry>whatever bold>text;;
list-entry>whatever bold>text;;
<
<
</pre>
<
<syntaxhighlight lang="css" line>
.red {
color: red;
}

.extra-class {
text-align: center;
}
</syntaxhighlight>
<syntaxhighlight lang="kotlin" line>
fun onLoad() {
Hcdl.selectElement(".extra-class").outer = parag {
+"hello"
}
}
</syntaxhighlight>

The previous section would compile to:
<pre>
HCDL
[0x1 META]
[0x1 TITLE]Title[0x2 TITLE]
[0x1 SCRIPT](Q-WebAssembly)[0x2 SCRIPT]
[0x2 META]
[0x1 HEADER]
[0x1 HEADER-L1]Title[0x2 HEADER-L1]
[0x2 HEADER]
[0x1 CONTENT]
[0x1 PARAG][0x1 COMPCSS DEDUPID=2114012]color:red[0x2 COMPCSS][0x1 COMPCSS DEDUPID=2941024]text-align:center[0x2 COMPCSS]Hi[0x2 PARAG]
[0x1 LIST][0x1 ATTR]unordered[0x2 ATTR][0x1 COMPCSS DEDUPID=2114012][0x2 COMPCSS]Hi[0x2 LIST]
[0x2 CONTENT]
</pre>
</pre>



Revision as of 09:42, April 13, 2025

"ACROSS SPACE & TIME TOWARDS DISTANT WORLDS"
TIMELINE

This article takes place in the 24 & 26 centuries of Distant Worlds.

Note to Community 📝
This hatnote indicates this page is free to be contributed by the community in any way without any restrictions from scope author.

Article contributors: tesinormed

HCDL (MIME type: text/hcdl), also known as the Hypercontent Distribution Language, is the standard binary language used in Web communications to end users. It is normally assembled on the server side using textual HCDL, CSS, and WebAssembly.

Language

Example

HCDL
meta>
    title>Example Title;
<
header>
    header-l1>Title;
<
content>
    parag>attr>.red:.extra-class;HLLO
EXTRA TEXT;
    list>attr>unordered:.red;
        list-entry>whatever bold>text;;
    <
.red {
    color: red;
}

.extra-class {
    text-align: center;
}
fun onLoad() {
     Hcdl.selectElement(".extra-class").outer = parag {
         +"hello"
     }
}

The previous section would compile to:

HCDL
[0x1 META]
[0x1 TITLE]Title[0x2 TITLE]
[0x1 SCRIPT](Q-WebAssembly)[0x2 SCRIPT]
[0x2 META]
[0x1 HEADER]
[0x1 HEADER-L1]Title[0x2 HEADER-L1]
[0x2 HEADER]
[0x1 CONTENT]
[0x1 PARAG][0x1 COMPCSS DEDUPID=2114012]color:red[0x2 COMPCSS][0x1 COMPCSS DEDUPID=2941024]text-align:center[0x2 COMPCSS]Hi[0x2 PARAG]
[0x1 LIST][0x1 ATTR]unordered[0x2 ATTR][0x1 COMPCSS DEDUPID=2114012][0x2 COMPCSS]Hi[0x2 LIST]
[0x2 CONTENT]
Contents