File path: dist/twist/Core/Models/String/SyntaxHighlight.model.php
Namespace: Twist\Core\Models\String
code
— Hightlight some code that has been passed in, set a range above and below a focus point (Line No)
Name | Description |
---|---|
$strCode | n/a |
[$strOutputType = 'plain'] | n/a |
[$intFocusLineNo = null] | n/a |
[$intFocusRange = 3] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strCode = 'foo';
$strOutputType = 'plain';
$intFocusLineNo = null;
$intFocusRange = 3;
//Call the function code with the example vars
\Twist\Core\Models\String\SyntaxHighlight::code($strCode, $strOutputType, $intFocusLineNo, $intFocusRange);