天天看點

unity下lua.txt 在notepad++中開發環境配置

 因為unity項目中ulua需要以textasset的方式加載,很多時候會把字尾改為lua.txt,再不能高亮了,再不能自動補全了,怎麼辦?

 這邊介紹怎麼在notepad中配置lua的環境,同時讓notepad識别出lua.txt

先看一眼效果:

unity下lua.txt 在notepad++中開發環境配置

一、 怎麼讓notepad識别lua.txt 為 lua

 1. 選擇設定->語言格式設定

unity下lua.txt 在notepad++中開發環境配置

  如下設定

unity下lua.txt 在notepad++中開發環境配置

二、 函數清單

  下載下傳  http://download.csdn.net/detail/tencenthao/9422660  ,包含了函數清單和自動補全的檔案

    将FunctionList_2_1_UNI_dll.zip 解壓後

 把FunctionList.dll拷貝到 安裝目錄\Notepad++\plugins下

 把Gmod Lua.bmp和C++.flb拷貝到 安裝目錄\Notepad++\plugins\config下

 把FunctionListRules.xml拷貝到 %APPDATA%\Notepad++\plugins\config下

 其中%APPDATA%的位置,在我這裡的是C:\Users\username\AppData\Roaming\Notepad++\plugins\config

 此時就有函數清單了。

三、文法高亮和自動補全

    将lua.xml 部署到\Notepad++\plugins\APIs下,此xml可以自定義。

繼續閱讀