Discuss Scratch

Mr_rudy
Scratcher
100+ posts

EzScript - A python html thingy

I made this little silly html python thing
It converts simple syntax to html, and it was written in python. It is based off the source of ZenScript by @BA4X but I didn't like the syntax and wanted a few more features.

It is a very early alpha, but you still can make some cool stuff with it

The gh repo is here

The syntax is like this:
<title> cool ezscript website
<heading> this is a heading
<text> yo
<js>
alert('cool')
<endjs>
<css>
body {
background-color: lightblue;
}
<endcss>
Oh yeah you can use fengari (lua)
try this out:

<initlua>
<lua>
print(“Look at the console! This is not regular js, its lua!”)
<endlua>
TODO:
More tags
Better compiler (lua rewrite?)
And much more

Feel free to suggest features

Last edited by Mr_rudy (Feb. 29, 2024 22:41:16)

MagicCrayon9342
Scratcher
1000+ posts

EzScript - A python html thingy

this is just html but odd
Mr_rudy
Scratcher
100+ posts

EzScript - A python html thingy

MagicCrayon9342 wrote:

this is just html but odd
basically lol
Steve0Greatness
Scratcher
1000+ posts

EzScript - A python html thingy

Why are you forcing the font-family to Arial? I don't even think most sites have Arial on them. Mine doesn't at least.
Mr_rudy
Scratcher
100+ posts

EzScript - A python html thingy

you can change the font, its not forced
dumorando
Scratcher
100+ posts

EzScript - A python html thingy

Steve0Greatness wrote:

Why are you forcing the font-family to Arial? I don't even think most sites have Arial on them. Mine doesn't at least.
i added it to zenscript as a way to kinda eliminate times new roman (bleh)
you can change it (atleast in zenscript idk about ezscript) with “font (whatever css font you want)”
Mr_rudy
Scratcher
100+ posts

EzScript - A python html thingy

dumorando wrote:

Steve0Greatness wrote:

Why are you forcing the font-family to Arial? I don't even think most sites have Arial on them. Mine doesn't at least.
i added it to zenscript as a way to kinda eliminate times new roman (bleh)
you can change it (atleast in zenscript idk about ezscript) with “font (whatever css font you want)”
you use <font> cuz tags are cool
Steve0Greatness
Scratcher
1000+ posts

EzScript - A python html thingy

REMOVED

Last edited by Steve0Greatness (Feb. 29, 2024 02:15:45)

NFlex23
Scratcher
1000+ posts

EzScript - A python html thingy

I made something kinda similar a long time ago: https://github.com/MystPi/marker
Mr_rudy
Scratcher
100+ posts

EzScript - A python html thingy

NFlex23 wrote:

I made something kinda similar a long time ago: https://github.com/MystPi/marker
Nice! Lua.vm.js was just added to ZenScript, but I kinda want to add Fengari to EzScript, cuz its faster then lua.vm.js

EDIT: I added Fengari

Last edited by Mr_rudy (Feb. 29, 2024 23:00:54)

Mr_rudy
Scratcher
100+ posts

EzScript - A python html thingy

I also added Python support, keep in mind the sites are still completely static. I used a JavaScript code thing that lets you run Python in HTML.
Mr_rudy
Scratcher
100+ posts

EzScript - A python html thingy

bump
Mr_rudy
Scratcher
100+ posts

EzScript - A python html thingy

bring up my post

Powered by DjangoBB