Paragraph()

Returns an HTML paragraph string. This is a helper function that generates HTML - use with Append() to add to the page.

Syntax
Result.s = MaterialSB::Paragraph(Text.s, Color.s = "")
Parameters
Text.s The paragraph text. Newline characters (~"\n") are converted to <br> tags.
Color.s Optional. Text color using Materialize color constants (e.g., #Color_Red).
Return Value

Returns an HTML string containing the paragraph element.

Remarks

This function returns a string, not a DOM element. Use Append() to add the returned HTML to the page.

For more control over styling, use Paragraph_ex() which accepts custom class and style attributes.

Example
Procedure Main(Success)
  If Success
    MaterialSB::Row(MaterialSB::#Grid_Container)
      MaterialSB::Col(12)
        ; Simple paragraph
        MaterialSB::Append(MaterialSB::Paragraph("This is a simple paragraph of text."))
        
        ; Colored paragraph
        MaterialSB::Append(MaterialSB::Paragraph("This text is red.", MaterialSB::#Color_Red))
        MaterialSB::Append(MaterialSB::Paragraph("This text is blue.", MaterialSB::#Color_Blue))
        MaterialSB::Append(MaterialSB::Paragraph("This text is teal and darkened.", MaterialSB::#Color_Teal + MaterialSB::#Color_Darken_2))
        
        ; Multi-line paragraph (newlines become 
tags) MaterialSB::Append(MaterialSB::Paragraph("Line one~\nLine two~\nLine three")) MaterialSB::CloseCurrentParent() MaterialSB::CloseCurrentParent() EndIf EndProcedure MaterialSB::Download(@Main())
See Also

Paragraph_ex(), Header(), Append(), Colors