TwistPHP Documentation

convertStyles

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

convertStylesApply new styles to the code rather than the default ones

Parameters

Name Type Description
$strFormattedCodestringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strFormattedCode 'foo';

//Call the function convertStyles with the example vars
\Twist\Core\Models\String\SyntaxHighlight::convertStyles($strFormattedCode);