HTML+in+Run+BASIC

toc =The HTML command= Carl Gundel has this to say about using HTML in Run BASIC:

> Right now there are two important things to know about HTML and Run BASIC: > If you use a PRINT statement, all HTML gets escaped. So in other words if you use: > > You will see the tags in the output and bold will not be bold. > If you want the tags to work, use the HTML statement, like this: > > It's just like a PRINT statement, but the tags work. :) > -Carl

=Structure= You can break out of the fixed-width font "console" appearance of text-based displays by forcing the DIV for the display to close, allowing you to use the full range of HTML font and text display capabilities. Put this at the top of your code script: code format="vbnet" html " " code

=Text Attributes= Basic HTML tags for bold, italic, underline, centered text, etc. allow you to format text output. code format="vbnet" html "This is bold." html "This is italic." html " This is underlined. " html " This is centered. " code

=Formatting the HTML Statement= The HTML script above can be accomplished with a single HTML statement. The HTML is started with an opening quotation mark. New lines become part of the HTML statement, which continues until a closing quotation mark is reached. Here is the code above, formatted into a single HTML statement.

code format="vbnet" html " This is bold. This is italic. This is underlined. This is centered. " code

=Fonts= The tag is deprecated, but it can still be used. Here are some examples. Size values must be in the range 1-7. code format="vbnet" html " This is large. " html " This is red. " html "This is also red. " html " This is courier. " html " This is verdana. " html " This is times. " code

=Links= To link to another website, use the Liberty BASIC Home Page" code Open in a new browser window: code format="vbnet" html "Liberty BASIC Home Page" code Open in an inset frame, with alignment attributes: code format="vbnet" html "" code