Pages - Menu

2013年10月3日 星期四

Notepad++ 在php中使用 php 跟 html 註解方式

php的單行註解是Ctrl+Q 而區塊註解 ALT+SHIFT+Q 是 /*.....*/
但寫html的時候註解是<!--    -->  
以下教學是把/*......*/改成  <!-- ...........-->

xp的檔案目錄在%appdata%\Notepad++文件夾」內。
Win7 中是放在「C:\Users\user\AppData\Roaming\Notepad++」需改兩個地方
langs.xml、langs.model.xml 裡面
搜尋 php 大概在第一個搜尋就找的到了,
原先是
 <Language name="php" ext="php php3 phtml" commentLine="//" commentStart="/*" commentEnd="*/">
修改成   html的註解方式  請參考language name="html" 的註解方式

 <Language name="php" ext="php php3 phtml" commentLine="//" commentStart="&lt;!--" commentEnd="--&gt;">
重啟軟體後 即可用

沒有留言:

張貼留言