본문 바로가기
Arduino/AVR/0. 회로이론

UltraEdit용 AVR C파일 구문강조 wordfile

by pepsiman 2009. 7. 9.
아래 내용을 UltraEdit의 구문강조파일에 C/C++ 영역에 교체하면 AVR C 문법을 강요하여 볼수 있습니다.

구문강조 편집하기
UltraEdit의 고급메뉴 > 설정
편집기 표시 > 구문강조 > 단어목록의 파일 경로 >> 열기 버튼
/L1"C/C++" 항목에서 /L2 항목 전까지 부분을 아래 내용으로 교체합니다.



/L1"C/C++" Line Comment = // Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = "' File Extensions = C CPP CC CXX H HPP AWK
/Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> , .?
/Function String = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]+([^p*&, ^t^[^]a-zA-Z_0-9.!]++)[~;]"
/Function String 1 = "%[a-zA-Z_0-9*]*::^([a-zA-Z_0-9^~]+^)[ ^t^p]++([^p*&, ^t^[^]/*=:&a-zA-Z_0-9./(!]++)[~;]"
/Function String 2 = "%[a-zA-Z_0-9^][a-zA-Z_0-9^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9./(!]++)[~;]"
/Function String 3 = "%[a-zA-Z_0-9*&$^[^]*]+[ ^t]+[a-zA-Z_0-9*&$^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9./(!]++)[~;]"
/Function String 4 = "%[a-z_0-9^[^]*]++ [a-z_0-9*^[^]]+[ ^t]++[a-z_0-9*^[^]]+[ ^t]++^([*a-z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-z_0-9./(!]++)[~;]"
/Function String 5 = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9./()!]++)[~;]"
/Indent Strings = "{" ":"
/Unindent Strings = "}"
/C1"Keywords"
auto
break bool
case char const continue
default do double defined
else enum extern
float for
goto
if int
long
register return
short signed sizeof static struct switch
typedef
union unsigned
void volatile
while
__asm __based __cdecl __declspec __except __far __fastcall __finally __fortran __huge __inline __int16 __int32 __int64 __int8 __interrupt __leave __loadds __near __pascal __saveregs __segment __segname __self __stdcall __try __uuidof
#define #error #include #elif #if #line #else #ifdef #pragma #endif #ifndef #undef
/C2"C++ Keywords"
catch class const_cast
delete dynamic_cast
explicit export
false friend
inline
mutable
new namespace
operator
private protected public
reinterpret_cast
static_cast
template this throw true try typeid typename
using
virtual
wchar_t
__multiple_inheritance __single_inheritance __virtual_inheritance
/C3"Microsoft C extensions"
dllexport dllimport
naked
thread
uuid
/C4"Operators"
+
-
=
// /
%
&
>
<
^
!
|
/C5"AVR128"
ADCW ADC ADCL ADCH ADCSR ADCSRA ADMUX ACSR ASSR
DDRA DDRB DDRC DDRD DDRE DDRF DDRG
ETIMSK EICRA ETIFR EICRB EIFR EICRA EIMSK  EIMSK 
ICR1 ICR1L ICR1H ICR3 ICR3L ICR3H 
MCUCR MCUSR MCUCSR
OCR1B OCR1BL OCR1BH OCR1A OCR1AL OCR1AH OCR0 OCDR OCR2 OSCCAL OCR1C OCR1CL OCR1CH 
OCR3C OCR3CL OCR3CH OCR3B OCR3BL OCR3BH OCR3A OCR3AL OCR3AH 
PORTA PORTB PORTC PORTD PORTE PORTF PORTG PINA PINB PINC PIND PINE PINF PING 
RAMPZ
SPMCR SPMCSR SFIOR SPSR SPDR SPCR SPDR Signal
SIG_INTERRUPT0 SIG_INTERRUPT1 SIG_INTERRUPT2 SIG_INTERRUPT3 SIG_INTERRUPT4 SIG_INTERRUPT5 SIG_INTERRUPT6 SIG_INTERRUPT7 
SIG_OUTPUT_COMPARE0 SIG_OUTPUT_COMPARE1A SIG_OUTPUT_COMPARE1B SIG_OUTPUT_COMPARE2 SIG_INPUT_CAPTURE1
SIG_OVERFLOW2 SIG_OVERFLOW1 SIG_OVERFLOW0 SIG_OVERFLOW3 
SIG_SPI SIG_USART0_RECV SIG_UART0_RECV SIG_USART0_DATA SIG_UART0_DATA SIG_USART0_TRANS SIG_UART0_TRANS 
SIG_ADC SIG_EEPROM_READY SIG_COMPARATOR SIG_INPUT_CAPTURE3 
SIG_OUTPUT_COMPARE1C SIG_OUTPUT_COMPARE3A SIG_OUTPUT_COMPARE3B SIG_OUTPUT_COMPARE3C 
SIG_USART1_RECV SIG_UART1_RECV SIG_USART1_DATA SIG_UART1_DATA SIG_USART1_TRANS SIG_UART1_TRANS 
SIG_2WIRE_SERIAL SIG_SPM_READY 
TCNT0 TCCR0  TCNT1 TCNT1L TCNT1H TCCR1B TCCR1A TIMSK TIFR TWBR TWSR TWAR TWDR TWCR
TCCR1C TCNT2 TCCR2 TCCR0 TIMSK TCNT0 TCNT3 TCNT3L TCNT3H TCCR3B TCCR3A TCCR3C 
UBRR0L UCSR0B UCSR0A UDR0 UBRR0H UCSR0C UBRR1H UBRR1L UCSR1B UCSR1A UDR1 UCSR1C 
WDTCR
XMCRB XMCRA XDIV XMCRA XMCRB

/C6"AVR BIT"
AS0 ADHSM ACME ACD ACBG ACO ACI ACIE ACIC ACIS1 ACIS0
ADEN ADSC ADFR ADIF ADIE ADPS2 ADPS1 ADPS0 ADLAR 
BORF BLBSET
COM1 COM0 CS2 CS1 CS0 COM01 COM00 CS02 CS01 CS00 COM21 COM20 CS22 CS21 CS20 COMA1 COMA0 COMB1 COMB0 COMC1 COMC0 
COM1A1 COM1A0 COM1B1 COM1B0 COM1C1 COM1C0 COM3A1 COM3A0 COM3B1 COM3B0 COM3C1 COM3C0 CPOL CPHA 
CSB2 CSB1 CSB0 CS12 CS11 CS10 CS32 CS31 CS30 
DD7 DD6 DD5 DD4 DD3 DD2 DD1 DD0
DDA7 DDA6 DDA5 DDA4 DDA3 DDA2 DDA1 DDA0 
DDB7 DDB6 DDB5 DDB4 DDB3 DDB2 DDB1 DDB0
DDC7 DDC6 DDC5 DDC4 DDC3 DDC2 DDC1 DDC0
DDD7 DDD6 DDD5 DDD4 DDD3 DDD2 DDD1 DDD0
DDE7 DDE6 DDE5 DDE4 DDE3 DDE2 DDE1 DDE0
DDF7 DDF6 DDF5 DDF4 DDF3 DDF2 DDF1 DDF0
DDG4 DDG3 DDG2 DDG1 DDG0
DORD DOR DOR1 DOR0 
EXTRF E2END 
FE FE0 FE1 FOC0 FOCA FOCB FOCC FOC3A FOC3B FOC3C FOC1A FOC1B FOC1C FOC FOC2 FLASHEND
JTD JTRF
INT7 INT6 INT5 INT4 INT3 INT2 INT1 INT0
ICNC ICES ICNC1 ICES1 ICNC3 ICES3
INTF7 INTF6 INTF5 INTF4 INTF3 INTF2 INTF1 INTF0
ICF1 ICF3 IDRD 
ISC31 ISC30 ISC21 ISC20 ISC11 ISC10 ISC01 ISC00
ISC71 ISC70 ISC61 ISC60 ISC51 ISC50 ISC41 ISC40
IVSEL IVCE 
MSTR MPCM MPCM1 MPCM0 MUX4 MUX3 MUX2 MUX1 MUX0
OCIE2 OCIE1A OCIE1B OCIE0 
OCF2 OCF1A OCF1B OCF0  
OCIE3A OCIE3B OCIE3C OCIE1C OCF3A OCF3B OCF3C OCF1C OCR0UB 
OCDR7 OCDR6 OCDR5 OCDR4 OCDR3 OCDR2 OCDR1 OCDR0

PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0
PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0
PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0
PE7 PE6 PE5 PE4 PE3 PE2 PE1 PE0
PF7 PF6 PF5 PF4 PF3 PF2 PF1 PF0
PG4 PG3 PG2 PG1 PG0 PGERS PGWRT 
PIN7 PIN6 PIN5 PIN4 PIN3 PIN2 PIN1 PIN0
PINA7 PINA6 PINA5 PINA4 PINA3 PINA2 PINA1 PINA0
PINB7 PINB6 PINB5 PINB4 PINB3 PINB2 PINB1 PINB0
PINC7 PINC6 PINC5 PINC4 PINC3 PINC2 PINC1 PINC0
PIND7 PIND6 PIND5 PIND4 PIND3 PIND2 PIND1 PIND0
PINE7 PINE6 PINE5 PINE4 PINE3 PINE2 PINE1 PINE0 
PINF7 PINF6 PINF5 PINF4 PINF3 PINF2 PINF1 PINF0 
PING4 PING3 PING2 PING1 PING0 PUD PSR0 PSR321 
PORT7 PORT6 PORT5 PORT4 PORT3 PORT2 PORT1 PORT0
PORTA7 PORTA6 PORTA5 PORTA4 PORTA3 PORTA2 PORTA1 PORTA0
PORTB7 PORTB6 PORTB5 PORTB4 PORTB3 PORTB2 PORTB1 PORTB0
PORTC7 PORTC6 PORTC5 PORTC4 PORTC3 PORTC2 PORTC1 PORTC0
PORTD7 PORTD6 PORTD5 PORTD4 PORTD3 PORTD2 PORTD1 PORTD0
PORTE7 PORTE6 PORTE5 PORTE4 PORTE3 PORTE2 PORTE1 PORTE0
PORTF7 PORTF6 PORTF5 PORTF4 PORTF3 PORTF2 PORTF1 PORTF0
PORTG4 PORTG3 PORTG2 PORTG1 PORTG0
PORF 
RAMPZ00 REFS1 REFS0 RWWSB RWWSRE 
RXC RXC1 RXC0 RXCIE RXCIE1 RXCIE0 RXEN RXEN1 RXEN0 RXB8 RXB81 RXB80 RAMEND 
SRE SRW SRW10 SE SM1 SM0 SM2 SPR1 SPR0 SPM_PAGESIZE 
SRL2 SRL1 SRL0 SRW01 SRW00 SRW11 
SPMIE SPMEN SPIF SPI2X SPIE SPE 
TOIE0 TOIE1 TOIE2 TOIE3 TOV0 TOV1 TOV3 TICIE3 TICIE1 TOV2 TXC TXC0 TXC1 TXCIE TXCIE1 TXCIE0 TXEN TXEN1 TXEN0 TXB8 TXB81 TXB80
TWINT TWEA TWSTA TWSTO TWWC TWEN TWIE  
TWA6 TWA5 TWA4 TWA3 TWA2 TWA1 TWA0 TWGCE TSM 
TWS7 TWS6 TWS5 TWS4 TWS3 TWPS1 TWPS0 TCN0UB TCR0UB 
UDRE UDRE0 UPE U2X UDRE1 UPE1 U2X1 UPE0 U2X0 UDRIE UDRIE1 UDRIE0 UCSZ UCSZ2 UCSZ12 UCSZ02 
UMSEL UPM1 UPM0 USBS UCSZ1 UCSZ0 UCPOL
UMSEL1 UPM11 UPM10 USBS1 UCSZ11 UCSZ10 UCPOL1 
UMSEL0 UPM01 UPM00 USBS0 UCSZ01 UCSZ00 UCPOL0 
WCOL WDRF WGM0 WGM00 WGM20 WGM01 WGM1 WGMA1 WGMA0 WGM31 WGM30 WGM11 WGM10 WGM21 WGMB3 WGMB2 
WGM13 WGM12 WGM33 WGM32 WDCE WDE WDP2 WDP1 WDP0 
XDIVEN XDIV6 XDIV5 XDIV4 XDIV3 XDIV2 XDIV1 XDIV0 XC0 XRAMEND XMBK XMM2 XMM1 XMM0