ABMCodeLabels are blocks that represent source programming code within your page. It can be used, like for this app, to make a help website or tutorial that explains your library.

There are two methods to setup your source code string: Using a B4J List object or using the B4J Smart Strings. An example of both, you can use the one you feel most comfortable with. Note, Smart Strings cannon show everything: Using as code Sub Name() ... End Sub ... Sub Name2() ... End Sub will not work with Smart Strings!

// add codeblock
Dim code2 As StringBuilder
code2.Initialize
code2.Append("Dim btn4 As ABMButton").Append(CRLF)
code2.Append("btn4.Initializefloating(page, "btn4", "mdi-image-palette", "darkred")").Append(CRLF)
code2.Append("btn4.Large = True").Append(CRLF)
code2.Append("page.Cell(5,1).AddComponent(btn4)").Append(CRLF)
page.Cell(6,1).AddComponent(ABMShared.BuildCodeBlock(page, "code2", code2))
// add codeblock
Dim code3 As String = $"Dim btn4 As ABMButton
btn4.Initializefloating(page, "btn4", "mdi-image-palette", "darkred")
btn4.Large = True
page.Cell(5,1).AddComponent(btn4)"$
page.Cell(6,1).AddComponent(ABMShared.BuildCodeBlockFromSmartString(page, "code3", code3))