Skip to content

Commit 3d41c8f

Browse files
Update README.md
1 parent 720ad0e commit 3d41c8f

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ https://github.com/CleanCode-backup/CanvaScript/issues
66
and make a new issue.also if you can do a pull request please do that.that will make my day 😊!you can go to
77
https://github.com/CleanCode-backup/CanvaScript/pulls for that.
88
# Tutorials - Learn More
9-
Welcome to the To Tutorials,for full documentation go to the <a href="Docs.md">Docs</a>(if you are wonder the floder doc is a part
10-
in order to use the libary use th <code>import cavnascript</code>
9+
Welcome to the To Tutorials,for full documentation go to the <a href="Docs.md">Docs</a>(if you are wonder the folder doc is a part of the library.)
10+
in order to use the libary use the <code>import cavnascript</code>
1111
## Creating a HTML page
1212
first Let's Create a HTML page that Java can use.
1313

@@ -19,5 +19,16 @@ import canvascript.doc.htmldoc;
1919
htmldoc.CloseHTML();
2020
}
2121
</code>
22-
the <code><b>htmldoc.CreateHTML();</b></code>it takes a few string parameters. pagePath is the folder of the page. next pagePath is the name of the page without the file extension . then pagePath is the text in the <code>&lt;title&lt;</code>the function creates the page but not fully,enable other functions to add code.this is when <code>htmldoc.CloseHTML();</code> come in. it close the file.you add a css file you all ready created, or make one using
22+
the <code><b>htmldoc.CreateHTML();</b></code>it takes a few string parameters. pagePath is the folder of the page. next pagePath is the name of the page without the file extension . then pagePath is the text in the <code>&lt;title&lt;</code>the function creates the page but not fully,enable other functions to add code.this is when <code>htmldoc.CloseHTML();</code> come in. it close the file.if you want CanvaScript a Official way to add CSS to your application, add the parameter CSS,or
23+
<code>
24+
import canvascript.doc.htmldoc;
25+
class examlpe001{
26+
public css = "*{
27+
color: red;
28+
}"
29+
htmldoc page = new htmldoc();
30+
htmldoc.CreateHTML(pagePath,pageName,pageTitle,<b>css</b>);
31+
htmldoc.CloseHTML();
32+
}
33+
</code>
2334
##

0 commit comments

Comments
 (0)