You could always look inside an existing b4xlib and see the comments there. However I'll save you the trouble. Use <code> tags like GetPage from B4XPages.
B4X:
'Returns the page instance. You should cast it to the correct type.
'Example:<code>
'Dim page2 As B4XPage2 = B4XPages.GetPage("Page2")</code>
Public Sub GetPage (Id As String) As Object
Return GetManager.GetPage(Id)
End Sub
Just to make sure it's clear, you can also write it as follows (it's neater and more readable):
B4X:
'Returns the page instance. You should cast it to the correct type.
'Example:
'<code>
'Dim page2 As B4XPage2 = B4XPages.GetPage("Page2")
'</code>
Public Sub GetPage (Id As String) As Object
Return GetManager.GetPage(Id)
End Sub