PHP Template

PHP Template Code Screenshot Generator

Turn PHP Template snippets into images worth sharing, without leaving your Mac.

Templated PHP interleaves markup and logic, and the interleaving is usually the thing being explained.

Codeshot detects PHP Template from the code you paste, so there is no language picker to get wrong. Here is the same snippet in three of the 30 themes it ships with, rendered with the app's own stylesheets.

<ul class="snapshots">
  <?php foreach ($snapshots as $snap): ?>
    <li>
      <?= htmlspecialchars($snap->theme) ?>
      <small><?= $snap->scale ?>x</small>
    </li>
  <?php endforeach; ?>
</ul>
Atom One · dark
<ul class="snapshots">
  <?php foreach ($snapshots as $snap): ?>
    <li>
      <?= htmlspecialchars($snap->theme) ?>
      <small><?= $snap->scale ?>x</small>
    </li>
  <?php endforeach; ?>
</ul>
Edge · dark
<ul class="snapshots">
  <?php foreach ($snapshots as $snap): ?>
    <li>
      <?= htmlspecialchars($snap->theme) ?>
      <small><?= $snap->scale ?>x</small>
    </li>
  <?php endforeach; ?>
</ul>
GitHub · dark

Choosing a theme for PHP Template

Choose a theme that distinguishes the PHP tags from the surrounding HTML, or the boundary between the two languages vanishes.

Getting the size right

Let the image follow your content, or lock it to a ratio — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3, or 3:4 — then export at 1×, 2×, or 3× so it stays sharp on a retina display. Copy it straight to the clipboard with C, or save with S.

See all 30 themes side by side, or read the full workflow.

Built for PHP Template, and 59 other languages

Everything runs on your Mac. Your code never leaves it.

Download for macOS