:setfiletype html.ftl
ざっくりした説明
filetypeは「.」を挟むと複数のfiletypeを定義できる。
定義すると順番に読み込まれていく。
kanaさんはcompound filetypeとか言ってる。
そういえば
はてなダイアリはText::VimColorを使っているので内部的にVimを立ち上げたりなんかしている。
「.」をはじいてなきゃはてなダイアリでも使えるはず。(でも「.」をfiletypeに含められるのたぶん知らないだろうし、これがはてダでもできるってことは異常値はじいたりしてないのでは...?とちょっと心配になるけども)
<!-- vim:ts=4:sw=4:sts=0:tw=0:et: -->
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/HTML; charset=UTF-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<meta http-equiv="Content-Script-Type" content="text/javascript"/>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<meta name="robots" content="noindex, nofollow"/>
<meta name="author" content="tyru"/>
<meta name="generator" content="Vim"/>
<title>${bean.title}</title>
</head>
<body>
${bean.header}
${bean.body}
${bean.footer}
</body>
</html>
追記: できないみたい。ひとまず安心。じゃあはてな社員さん、「.」をfiletypeとして含められるようお願いできますかね(ぇ