Skip to content

A new coding language for formatting text, photos, videos, embedded websites, all in one document.

Notifications You must be signed in to change notification settings

LB123658/AcornScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AcornScript

Create simple webpages with this new code.
AcornScript only allows two lines of code right now but there will be more soon.
Try it out

How to use

To add an id to any of the elements, add the id name inside two #
To create a heading and text below it, use this example code.

*heading* 'This is a heading' ||??!!;;##
*text* 'This is an example text.' ||??!!;;##

To create a button that says "Hello"

*button* 'hello' ||??!!;;##

A text input with "Type here..." as the placeholder

*input* ;Type here...; ||??!!''##

A link to Duckduckgo.com that says "Click here to go to DuckDuckGo"

*link* 'Click here to go to DuckDuckGo' |https://duckduckgo.com| ??!!;;##

Useful tips
element * *
id # #
innerHTML ' '
src ? ?
width ! !
href | |
placeholder ; ;

Example file to test out

*heading* 'About AcornScript' ||
*text* 'AcornScript lets you format text easily and add buttons, photos, videos and more, to easily make it more like a website. Each line of code must contain the special characters in pairs of two like they are written, unless you are only writing one line of code or only using the heading and text elements' ||
*link* 'Learn more' |https://lb123658.github.io/AcornScript/docs|

Create a website with AcornScript

Add the following code to an HTML file and put the AcornScript code between the first script tags.

<script id="fot" type="text/acornscript"></script>
<script src="https://lb123658.github.io/AcornScript/embed.js"></script>

About

A new coding language for formatting text, photos, videos, embedded websites, all in one document.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published