æåãªããã¹ãã¨ãã£ã¿"Notepad++"ãæ¥æ¬èªã³ã¼ãã«å¯¾å¿ãããã®ã
Notepad++
http://notepad-plus-plus.org/
Notepad++ EUC-JP対å¿ç
http://notepad-plusplus-euc-jp.hp.infoseek.co.jp/
åã使ãããã«Notepad++ã«æ³¨ç®ããç¹ã¨ãã¦ã¯ããããªæãã§ãã
ã»ã¿ã対å¿
ã»å¤æ°ã®è¨èªã«å¯¾å¿ãã¦ããã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ãæ©è½
ã»ã³ã³ã½ã¼ã«
ãã®è¾ºããå¾ã¯ä»ã®ã¨ããããè¦ã¦ã¾ããã
ä»åã¯ããã§ã³ã¼ããä½ãæã«å°ã便å©ã«ãªãäºããã£ã¦ã¾ãã
çãã³ã¼ãããã³ãã³æ¸ãã®ã§ç°¡åã«ã³ã³ãã¤ã«ãã§ããã°ãããªãã¨è¨ãäºã§è²ã
調ã¹ã¦ã¿ãã¨ã
ããããã¡ã¤ã«ã«æ¸¡ãåä½ãã·ã§ã¼ãã«ããããã§ããæ¹æ³ããã£ãã®ã§ããããªããããã¡ã¤ã«ãæ¸ãã¦ã¿ã¾ããã
ååã¯"build.bat"ã¨ã§ããã¦ããã¾ããã
@echo off set fname=%1 set option= set exename="" set CC= :optloop if "%2"=="" goto optend set option=%option% %2 shift /2 goto optloop :optend if "%~x1"==".cpp" goto cpp_lang if "%~x1"==".c" goto c_lang if "%~x1"==".pl" goto perl_lang goto not_suport_lang :not_suport_lang echo not support file exit 0 :cpp_lang echo compile cpp file. set CC=g++ set exename=%fname:.cpp=.exe% set option=%option% -o %exename% goto build :c_lang echo compile c file. set CC=gcc set exename=%fname:.c=.exe% set option=%option% -o %exename% goto build :perl_lang set CC=perl set option=%option% -c goto build :build echo %CC% %option% %fname% %CC% %option% %fname% if ERRORLEVEL 0 if not %exename%=="" ( echo ---EXEC--------------------------- %exename% )
è¦ã¯ãæ¡å¼µåãããã¡ã¤ã«ãå¤å¥ãã¦ããã¡ã¤ã«ã¨åãé層ã«ç§»åãã¦ã³ã³ãã¤ã«ãè¡ã£ã¦ã
ç¡äºã³ã³ãã¤ã«ã§ãã¦å®è¡ãã¡ã¤ã«åãæå®ããã¦ããããå®è¡ããã¨ããããã§ãã
å¤æ°åãè²ã
ã¶ã£é£ãã§ãã®ã¯ããã¨ãã¦ã
C,C++,Perlãé »ç¹ã«ä½¿ãã®ã§ãããã ãæ¸ãã¦ã¾ãã
ãã Perlã¯ææ³ãã§ãã¯ãã§ããã°ããã®ã§ãå®è¡ã¯ãã¾ããã
ããããããã©ã«ãã§å
¥ã£ã¦ããNppExecãå©ç¨ãã¦å®è¡ããã¾ãã
ããã©ã«ãã®ã·ã§ã¼ãã«ãããã¼ã¯"F6"ã«å²ãå½ã¦ããã¦ããã®ã§æ¼ãã¨ã
ã¹ã¯ãªãããå
¥åããããã¹ãã¨ãªã¢ãåºã¦ãã¾ãã
次ã«ããããã¡ã¤ã«ã¾ã§ã®ãã«ãã¹ã¨å¼æ°ãä¸ãã¾ãã
$(FULL_CURRENT_PATH)ã«ã¯ãç·¨éä¸ã®ãã¡ã¤ã«ã¸ã®ãã«ãã¹ãå
¥ã£ã¦ã¾ãã
"D:\...\build.bat" "$(FULL_CURRENT_PATH)"
"Save"ãããã¨ã§ãã®ã¹ã¯ãªããã«ååãã¤ãã¦ä¿åã§ãã¾ãã
次ã«ã"ãã©ã°ã¤ã³"->"NppExec"->"Advanced Options"ãéããå
ã»ã©ä½ã£ãã¹ã¯ãªãããç»é²ãã¾ãã
å·¦ä¸ã®MenuItemã¨ãªã¢ã«ã"Associated Script"ã§ãå
ã»ã©ä½ã£ãã¹ã¯ãªããã®ååãæå®ãã¾ãã
"Item name"ã¯é©å½ã«ã¤ãã¦ããã§ãã
ããã§ãAddããã¨ãå·¦ä¸ã®ãªã¹ãã«è¿½å ããã¾ãã
ç»é²ãçµãã£ãããä¸åº¦Notepad++ãåèµ·åãã次ã«ã·ã§ã¼ãã«ãããæå®ãã¾ãã
"è¨å®"->"ã·ã§ã¼ãã«ãã管ç"ãéãã"Plugin Commands"ã¿ãã«ã
å
ã»ã©ä½ã£ãã¹ã¯ãªããï¼Item nameï¼ãããã®ã§ãã·ã§ã¼ãã«ãããæå®ãã¾ãã
åã¯Alt+1ã«ç»é²ãã¾ãããã競åããã·ã§ã¼ãã«ãããããã®ã§ããã¡ãã¯ç¡å¹ã«ãã¦ããå¿
è¦ãããã¾ãã
ããã§ã1åã®åä½ã§ã³ã¼ãã®ææ³ãã§ãã¯ãã§ããããã«ãªãã¾ãããå¿«é©ã
TeraPadãåãäºãã§ããããåä½ã軽ãã¦è»½å¿«ã§ãããã ãã©ãã¼ã