Share your repls and programming experiences

← Back to all posts
Styler Markup Language
AnthonyMouse (78)

Styler Markup Language

Team: StylerML
Members: @EitanAlperstein
Repl: https://SML.stylerml.repl.co
Repl Blob: https://repl.it/@StylerML/SML#css-files/gens/sml.css

SML is a markup language, specifically created to embed CSS in HTML.
To start, you add this to your <head>:

<link href="https://SML.stylerml.repl.co/css-files/gens/sml.css" rel="stylesheet" type="text/css" />

This is the general file.
The basic syntax is as follows:

<element style="value"></element>

or

<!-- This language is not case-sensitive, but using capitals is good practice when writing SML code -->
<Style>
  <child>
</Style>

For example, to make a <text> element (SML overrides p. Use <text> instead.) red, there are two ways:

  <text color="red">Hello SML</text>

or

<Red>
  <text>Hello SML</text>
</Red>

For more, see the SML wiki on github.

UPDATE: This language is not finished, but still usable.