TwistPHP Documentation

code

File path: dist/twist/Core/Models/String/SyntaxHighlight.model.php
Namespace: Twist\Core\Models\String
Extends:

codeHightlight some code that has been passed in, set a range above and below a focus point (Line No)

Parameters

Name Type Description
$strCodestringn/a
[$strOutputType = 'plain']stringn/a
[$intFocusLineNo = null]integern/a
[$intFocusRange = 3]integern/a

Return Values

void — No return information has been documented for this function.

Example

<?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);