I'd love to highlight a function's use in a block of code. For example, take a look at the instance of fwrite() in this sample code:
A simple preg_replace, and I can highlight that function:
$sample = preg_replace("/fwrite\((.*)\)\;?/U", "<code>$0</code>", $sample);
However, in the event that the function contains nested parentheses, it gets trickier.
If the code sample, instead was:
... then the regex pattern won't know that the content inside the fwrite() function isn't the closing of the function.