Skip to content

Enhancement: Show code behind on samples page when running in web #895

@tnory56

Description

@tnory56

Add these lines to write function in Sample_Header.php line 75:

    $result .= getEndingNotes($writers);
//new code below
    $result .= "<pre><code>";
    if (file_exists($filename . '.php')) {
        $file = $filename . '.php';
        $result .= htmlspecialchars(file_get_contents($file));
    }
    $result .= "</code></pre>";

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions