SoftadminUtil.Html_CodeTag
Type:
Scalar function
Generates monospaced HTML with preserved whitespace.
The supplied code will be HTML escaped.
Example
SoftadminUtil.Html_CodeTag('SELECT * FROM SoftadminApi.Language', 'sql')
gives
<pre><code class="language-sql">SELECT * FROM SoftadminApi.Language</code></pre>
See also
Return value:
nvarchar(max)
Monospaced HTML with preserved whitespace.
Parameters
@Code
mandatory
varchar(max)
The code or document to display.
@Language
optional
varchar(300)
The code language. Use lower case, e.g. sql, js, html, xml or json.
If used, it may in a future release of Softadmin® enable syntax highlighting.