ÌÚ¼¤µ¤ó¡¢¤´¶ìÏ«¤µ¤Þ¤Ç¤¹¡£
¤ä¤Ï¤ê¡¢¤Ê¤ó¤«ÀßÄê¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ë¤È¤¤¤¤¤Ç¤¹¤Í¡ÄÌÀ¤ë¤á¤Î½é´üÃͤǡ£
¤¢¤È¡¢Á°²ó¤Î¼«¸Ê¥ì¥¹¤Ç¤¹¡£
Á°²ó¤Î¥ì¥¹¤Î¡¢ÊÌ·ï¤Î¹ÔÈÖ¹æ¤Î¸å¤í¤ÎÀþ¤¬¡¢Ê¸»ú¤È½Å¤Ê¤ë·ï¤Ç¤¹¤¬
¹Ô´Ö¤Î¹¤µ¤ò0¢ª1¡Á2¤Ë¤¹¤ë¤È¡¢Àþ¤¬Î¥¤ì¤Æ¡¢¤Á¤ç¤¦¤É¤¤¤¤¶ñ¹ç¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
¶Ëü¤Ë30¤È¤«¤Ë¤¹¤ë¤È¡¢¹ÔÈÖ¹æ¤ÎÉý¤¬¤«¤Ê¤ê¾®¤µ¤¯¤Ê¤ê¤Þ¤¹¤¬¡Ä
¸½ºß¤ÎÀµ¼°ÈǤΥ¨¥Ç¥£¥¿¤È¹Ô´Ö¤Î¹¤µ¤ÎµóÆ°¤¬°ã¤¦¤Î¤Ç¡¢
¤¤Ã¤È¡¢0¤¬Æþ¤Ã¤Æ¤Ï¤¤¤±¤Ê¤¤¤È¤³¤í¤Ë0¤¬Æþ¤Ã¤Æ¤¤¤ë¤Î¤Ç¤Ï¤È¿ä¬¤µ¤ì¤Þ¤¹¡£
¹ÔÈÖ¹æ¤ÎÉý¤Ï¡¢¿ôÃͤòÊѤ¨¤ÆÄ´À°¤Ç¤¤ë¤Î¤Ç¤³¤Î¤Þ¤Þ¤Ç¤â¡¢¤¤¤¤¤È¤¤¤¨¤Ð¤¤¤¤¤Ç¤¹¤¬¡Ä¡£
¤¢¤È¡¢C++¤Ë¤Ï¡¢¥Ø¥¿¥ì¤Ê¤Î¤Ç¡¢footy2»ÈÍѤΥ¹¥¯¥ê¥×¥È¤ò»²¹Í¤ËÍ·¤ó¤Ç¤ª¤ê¤Þ¤¹¡£
footy2¤Ë¤Ï¡¢¡Ö¹Ô´Ö¤Î¹¤µ¡×¤Î»ØÄ꤬¤Ê¤¤¤è¤¦¤Ê¡Ä¡£¤É¤¦¤·¤Æ¤ë¤Î¤«¤Ê¡Ä¡£
#uselib "Footy2.dll"
#include "footy2.as"
#define COLOR_COMMENT 0x00ff00; //... /* ... */
#define COLOR_FUNC 0xffff00; printf etc
#define COLOR_STRING 0xc0ffff; "ʸ»úÎó" etc
#define COLOR_SYSVAR 0xff00ff; int,char etc
#define COLOR_MACRO 0xff55ff
#define ctype RGB(%1,%2,%3) (%1|(%2<<8)|(%3<<16))
screen 0,640,480,0
Footy2Create hwnd, 0, 0, 600, 350, VIEWMODE_NORMAL
if ( stat == FOOTY2ERR_ARGUMENT || stat == FOOTY2ERR_MEMORY ) : end
idFooty = stat ;Footy2¥³¥ó¥È¥í¡¼¥ë¤ÎHSP¥¦¥¤¥ó¥É¥¦¾å¤ÎID¤ò¼èÆÀ
;¶¯Ä´É½¼¨¤ÎÀßÄê
;´Ø¿ô·¿
Footy2AddEmphasis idFooty,"printf", 0,EMP_WORD,0,1,1,EMP_IND_BLANKS|EMP_IND_PARENTHESIS,COLOR_FUNC
;¥·¥¹¥Æ¥àÊÑ¿ô
Footy2AddEmphasis idFooty, "int" , 0,EMP_WORD,0,1,1,EMP_IND_BLANKS|EMP_IND_PARENTHESIS|EMP_IND_OTHER_ASCII_SIGN,COLOR_SYSVAR
;¥Þ¥¯¥í
Footy2AddEmphasis idFooty, "macro", 0,EMP_WORD,0,1,1,EMP_IND_BLANKS|EMP_IND_PARENTHESIS|EMP_IND_OTHER_ASCII_SIGN,COLOR_MACRO
;¥³¥á¥ó¥È¿§Ê¬¤±
Footy2AddEmphasis idFooty, "/*", "*/",EMP_MULTI_BETWEEN,0,1,1,EMP_IND_ALLOW_ALL,COLOR_COMMENT
;ʸ»úÎó¿§Ê¬¤±
Footy2AddEmphasis idFooty, "\"", "\"",EMP_MULTI_BETWEEN,0,2,1,EMP_IND_ALLOW_ALL,COLOR_STRING
;¥¨¥Ç¥£¥¿¤Î³ÆÉô°Ì¤Î¿§¤òÀßÄê
Footy2SetColor idFooty,CP_TEXT ,RGB($FF,$FF,$FF),1 ;Ä̾ï¥Æ¥¥¹¥È¿§
Footy2SetColor idFooty,CP_BACKGROUND ,RGB($00,$00,$00),1 ;ÇØ·Ê¿§
Footy2SetColor idFooty,CP_URLTEXT ,RGB($FF,$FF,$FF),1 ;URL¤Î¥Æ¥¥¹¥È
Footy2SetColor idFooty,CP_URLUNDERLINE,RGB($FF,$FF,$FF),1 ;URL¤Î²¼Àþ
Footy2SetColor idFooty,CP_MAILTEXT ,RGB($FF,$FF,$FF),1 ;¥á¡¼¥ë¥¢¥É¥ì¥¹¤Î¥Æ¥¥¹¥È
Footy2SetColor idFooty,CP_MAILUNDERLINE,RGB($FF,$FF,$FF),1 ;¥á¡¼¥ë¥¢¥É¥ì¥¹¤Î²¼Àþ
Footy2SetMetrics idFooty, SM_MARK_VISIBLE,EDM_HALF_SPACE,1 ;µ¹æ¤Îɽ¼¨(Ⱦ³Ñ¥¹¥Ú¡¼¥¹)
Footy2SetMetrics idFooty, SM_MARK_VISIBLE,EDM_FULL_SPACE,1 ;µ¹æ¤Îɽ¼¨(Á´³Ñ¥¹¥Ú¡¼¥¹)
Footy2SetMetrics idFooty, SM_LINENUM_WIDTH, 50 ,1 ;¹ÔÈÖ¹æÉý(0¤Î¤È¤Èóɽ¼¨¡¢ÀßÄê»þÉé¤Î¿ô¤Ç¥Ç¥Õ¥©¥ë¥È¤ËÌ᤹)
Footy2SetMetrics idFooty, SM_RULER_HEIGHT , 10 ,1 ;¥ë¡¼¥é¡¼¹â¤µ(0¤Î¤È¤Èóɽ¼¨¡¢ÀßÄê»þÉé¤Î¿ô¤Ç¥Ç¥Õ¥©¥ë¥È¤ËÌ᤹)
Footy2SetMetrics idFooty, SM_UNDERLINE_VISIBLE,1,1 ;¹Ô²¼Àþ¤Îɽ¼¨¾õÂÖ(0¤Î¤È¤Èóɽ¼¨¡¢¤½¤ì°Ê³°¤Î¤È¤É½¼¨)
; ¿§Ê¬¤±¤òÈ¿±Ç
Footy2FlushEmphasis idFooty
; ¥Õ¥©¥ó¥È
Footy2SetFontFace idFooty, FFM_SHIFTJIS_CHARSET,"£Í£Ó ¥´¥·¥Ã¥¯", 1
Footy2SetFontSize idFooty, 12, 1
stop