IntraWeb markdown let’s us do all kind of neat things in text. We can use it to format text, apply CSS styles, inline data bind, or even call functions in our code from within text data in IWML. You can see all the markdown options here.
Our application does not have a lot of text, but we will use what we have to show some very basic markdown.
ACORN 1.0 IWML 1.0 Guess.Index FocusControl: GuessEdit ActionControl: GuessButton Cells SimpleStack JQUI.AccordionGroup JQUI.Accordion Play SimpleStack Edit:GuessEdit =this.Guess Text Guess #[=this.Count] Gap; BS.Button:GuessButton Text: Guess Face: Info ButtonSize: Large ] ] ] JQUI.Accordion Instructions Text Enter a number and click [b:Guess]. ] JQUI.Accordion About Text Where would we be without the Guess demo? ] ] Alert.Notification:MsgBox Title: Guess Demo AlertType: success ] ] ] ]
In this example we have use the b markdown tag which is short for bold. Either b or bold can be used interchangeably. When we run the application, now it looks like this:
Next we return to prettying up our application again by using our HTML loader as a template.