chore(emacs): finally move over the php html snippets

This commit is contained in:
Ade Attwood 2021-11-21 10:56:43 +00:00
parent 404df4b3db
commit 0aad3a6601
4 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: PHP Tags
# key: php
# --
<?php $0 ?>

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: const
# key: const
# --
const ${1:NAME$(upcase yas-text)} = '${1:$(string-inflection-underscore-function yas-text)}';

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: PHP Echo tags
# key: phpe
# --
<?= $0 ?>

View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: PHP if statment in view
# key: phpif
# --
<?php if ($1) : ?>
$0
<?php endif; ?>