You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could be convenient to have styling, but instead of having a separate <style> tag we may do something directly in <script>. Something like: (note that all of the attribute names in the class must be publicly accessible and named exactly the same as the original attributes)
<tml>
<text class=myTextClass>hey</text>
<text class=myTextClass>yo</text>
<script>
class myTextClass {
public bool bold = true;
public colour fg = colours.yellow;
public colour bg = colours.blue;
public bool newline = false;
};
</script>
</tml>
Could be convenient to have styling, but instead of having a separate
<style>
tag we may do something directly in<script>
. Something like: (note that all of the attribute names in the class must be publicly accessible and named exactly the same as the original attributes)would be equivalent to
It may not be a big deal in this small example, but for larger amounts of generalizable elements it may come in handy.
The text was updated successfully, but these errors were encountered: