PHP Template

PHP Templateコードスクリーンショット生成

PHP Templateのスニペットを、Macから離れることなく共有したくなる画像に。

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

Codeshotは貼り付けたコードからPHP Templateを判別するので、言語の選び間違いは起きません。付属する30種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。

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

PHP Templateに合うテーマ選び

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

サイズを正しく決める

画像サイズを内容に合わせるか、比率で固定します(1:1、4:3、3:2、16:9、9:16、2:3、3:4)。そのうえで1×・2×・3×から選んで書き出せば、Retinaディスプレイでも鮮明なままです。Cでクリップボードに直接コピー、またはSで保存できます。

30種類のテーマを見比べるか、全体の流れをご覧ください。

PHP Templateと、ほかの59言語のために

すべてMac上で動作します。コードが外に出ることはありません。

macOS版をダウンロード