Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 545 Bytes

File metadata and controls

17 lines (12 loc) · 545 Bytes

Code Block

Support
Events No

The code block element will render pre-formatted text as <pre>value</pre>. To create a code block element you use New-PodeWebCodeBlock, and you can specify the highlighting language via -Language - the default is plain text.

New-PodeWebCard -Content @(
    New-PodeWebCodeBlock -Value 'Write-Host "Hello, world!"' -Language PowerShell
)

Which looks like below:

code_block