讓Xcode Lua 文法高亮,xcodelua文法高亮
本人不太喜歡用code ide 還是喜歡XCODE的風格
1.讓Xcode支援Lua文法高亮(Syntax Highlighting) 1. 下載https://github.com/breinhart/Lua-In-Xcode
- download the two files (Add-Lua.sh, Lua.xclangspec)
- Open Add-Lua.sh and change the DVTFOUNDATION_PATH if necessary. You probably do not need to change this if you are on Xcode 4.3+
- Make sure Xcode is closed
- Run Add-Lua.sh from the terminal with sudo (I.E. 'sudo Add-Lua.sh')
- Enter your admin password and hit enter
- Open Xcode and notice the 'Lua' entry under "Editor->Syntax Coloring"
Lua 在 Visual studio 2010 中怎做到文法高亮
lua的話 為了方便執行 推薦用SciTE 或NOTEPAD++
前者是執行方便 後者是文法高亮做的比較好
xcode 沒有把代碼按照類型高亮顯示 全都是白色 怎變成彩色?
除了樓下的喜好設定以外,你的情況應該是之前是文法高亮顯示的,但是運行一段時間以後出現此現象。一般是記憶體不足造成的,你可以考慮我一般常用的方法
1、clean一下
2、 清空所有倉庫 , Organizer - Repositories - 清空所有Respositories
3、清除所有工程 Organizer-projects - 把項目Remove from Organizer
做完以上(一般我是做第二步有效)操作以後,關閉xcode重新開啟即可。
實在不行就重啟吧。