SUBROUTINE FIXED_S
INCLUDE #RW.INCLUDE.DEFS FROM /SYSFILES/REALWEB,BP
EQU LF TO CHAR(10)
CALL RW_START_HTML_PAGE("Preformatted Example 2", "", "", "", "")
HTML = ""
TEXT = "The following JavaScript function calculates the length of " :...
"the hypotenuse of a right-angled triangle:"
CALL RWS_PARA(TEXT, "", "")
HTML = HTML : TEXT
TEXT = "function hypotenuse(a, b) {" : LF : ...
" return Math.sqrt(a*a + b*b);" : LF : ...
"}"
CALL RWS_FIXED(TEXT, 'style="font-size: 9pt;"')
HTML = HTML : TEXT
CALL RW_PUT(HTML)
CALL RW_END_PAGE
RETURN
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="Reality">
<TITLE>Preformatted Example 2</TITLE>
</HEAD>
<BODY>
<P>
The following JavaScript function calculates the length of the hypotenuse
of a right-angled triangle:
</P>
<PRE style="font-size: 9pt;">
function hypotenuse(a, b) {
return Math.sqrt(a*a + b*b);
}</PRE>
</BODY>
</HTML>
NEC welcomes your feedback on our documentation.
If you have any comments about the current Reality Help, or want something to be added in a future revision, please contact your NEC Helpdesk.
If your comment relates to this particular Help topic, remember to include the following information:
Product:
|
RealityVersion 15.5
|
Help revision:
|
Revision 0
|
Help topic:
|
Preformatted Example 2 (RealWeb)
|
File name:
|
FIXED_S.htm
|