TwistPHP Documentation

processCode

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

processCodeProcess the code that has been passed in, highlight and output

Parameters

Name Type Description
$strCodestringn/a
$strOutputTypestringn/a
$intFocusLineNointegern/a
$intFocusRangeintegern/a

Return Values

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

Example

<?php
//Set the variables for the example
$strCode 'foo';
$strOutputType 'foo';
$intFocusLineNo 124;
$intFocusRange 124;

//Call the function processCode with the example vars
\Twist\Core\Models\String\SyntaxHighlight::processCode($strCode$strOutputType$intFocusLineNo$intFocusRange);