Paragraph_ex()
Returns an HTML paragraph string with custom class and style attributes. Extended version of Paragraph() for advanced styling.
Syntax
Result.s = MaterialSB::Paragraph_ex(Text.s, Class.s = "", Style.s = "")
Parameters
| Text.s | The paragraph text. Newline characters (~"\n") are converted to <br> tags. |
| Class.s | Optional. CSS class names to apply (space-separated for multiple). |
| Style.s | Optional. Inline CSS styles. |
Return Value
Returns an HTML string containing the paragraph element.
Example
Procedure Main(Success)
If Success
MaterialSB::Row(MaterialSB::#Grid_Container)
MaterialSB::Col(12)
; Paragraph with custom class
MaterialSB::Append(MaterialSB::Paragraph_ex("Centered text", "center-align"))
; Paragraph with inline styles
MaterialSB::Append(MaterialSB::Paragraph_ex("Large italic text", "", "font-size: 1.5rem; font-style: italic;"))
; Paragraph with both class and style
MaterialSB::Append(MaterialSB::Paragraph_ex("Right-aligned blue text", "right-align blue-text", "text-decoration: underline;"))
; Multi-line with custom styling
MaterialSB::Append(MaterialSB::Paragraph_ex("Line one~\nLine two~\nLine three", "grey-text", "line-height: 2;"))
MaterialSB::CloseCurrentParent()
MaterialSB::CloseCurrentParent()
EndIf
EndProcedure
MaterialSB::Download(@Main())