<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/en/taxonomy/term/213/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>SnipMate</title>
    <link>http://joetsuihk.com/en/taxonomy/term/213/all</link>
    <description></description>
    <language>en</language>
     <atom:link href="http://joetsuihk.com/en/taxonomy/term/213/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>vim 中設定正確的 php 文法高亮 filetype php.html sinppets</title>
    <link>http://joetsuihk.com/en/vim_%E4%B8%AD%E8%A8%AD%E5%AE%9A%E6%AD%A3%E7%A2%BA%E7%9A%84_php_%E6%96%87%E6%B3%95%E9%AB%98%E4%BA%AE_filetype_phphtml_sinppets</link>
    <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;Drupal 的 php, module, tpl.php 檔會包含 html 和 php 的代碼&lt;br /&gt;
而vim 預設的情況之下不會對 php 檔內的 html 碼高亮&lt;br /&gt;
但只要設定使用 php.html 就可以先高亮處理 php, 再處理 html 高亮, 例:&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;augroup php&lt;br /&gt;  &quot;php file also use html snippnets&lt;br /&gt;  autocmd BufRead,BufNewFile *.php set filetype=php.html&lt;br /&gt;augroup END&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;而如果你有使用 snipemate 的話,&lt;br /&gt;
Drupal 有一個snipmate 的庫可以使用&lt;br /&gt;
Vim SnipMate for Drupal&lt;br /&gt;&lt;a href=&quot;https://github.com/theunraveler/Drupal-Snippets-for-Vim&quot;&gt;https://github.com/theunraveler/Drupal-Snippets-for-Vim&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Free tags:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/drupal&quot;&gt;Drupal&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/vim&quot;&gt;vim&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/snipmate&quot;&gt;SnipMate&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-field-add-this field-type-addthis field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a class=&quot;addthis_button &quot; addthis:title=&quot;vim 中設定正確的 php 文法高亮 filetype php.html sinppets - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/vim_%E4%B8%AD%E8%A8%AD%E5%AE%9A%E6%AD%A3%E7%A2%BA%E7%9A%84_php_%E6%96%87%E6%B3%95%E9%AB%98%E4%BA%AE_filetype_phphtml_sinppets&quot;&gt;&lt;img src=&quot;http://s7.addthis.com/static/btn/sm-share-en.gif&quot; alt=&quot;Share page with AddThis&quot; /&gt;
&lt;/a&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Mon, 02 Jan 2012 09:57:31 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">261 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
