下面由sublime教程欄目給大家介紹sublime text2怎么直接測試perl代碼,希望對需要的朋友有所幫助!
Sublime Text 2: 直接測試Perl代碼
Sublime Text 2 沒有內建Perl的build system, 可以通過菜單Tools > Build System > New Build System…自行創建。創建的文本實質是個json文件,被ST2以.sublime-build后綴保存在/
/*在ST2中執行*/ { "cmd": "perl $file", "selector": "source.perl" }
或
/* 在cmd窗口中執行; '/c'表示執行完畢后關閉窗口,與'/k'對應; 兩個'PAUSE'保證無論文件是否成功運行都能得到反饋信息 */ { "cmd": ["start", "cmd", "/c", "perl $file && PAUSE || PAUSE"], "selector": "source.perl", "shell": true }
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END