A lightweight Web Component for editing TAC (Traditional Alphanumeric Codes) aviation meteorology messages — with built-in syntax highlighting, validation, and autocompletion. Supports METAR, SPECI, TAF, SIGMET, AIRMET, VAA, TCA, and SWXA formats.
message-types attribute restricts which TAC codes the editor will accept.
Only grammars for selected types will be loaded when detected. Leave unchecked types for a more restrictive editor.
Configure dynamic suggestion providers for token types. Providers can replace grammar suggestions or extend them.
METAR LFPG 281030Z 27015KT 9999 FEW040 12/05 Q1023 NOSIG
METAR LFPG 281030Z 27015G25KT 350V030 9999 FEW040CB SCT100 12/05 Q1023 TEMPO 3000 TSRA
SPECI EGLL 281045Z 09012KT 3000 BR BKN004 08/07 Q1019
METAR KJFK 281056Z 32008KT 10SM SCT250 M02/M14 A3042 RMK AO2
METAR LFBO 281030Z VRB02KT CAVOK 15/08 Q1025
METAR LSGG 281050Z 04005KT 0400 FG VV002 02/02 Q1031
TAF LFPG 160500Z 1606/1712 24008KT 9999 FEW040 BECMG 1612/1614 SCT030 BKN080
TAF LFPG 160500Z 1606/1712 24008KT 9999 SCT040 TEMPO 1612/1618 4000 TSRA BKN025CB PROB40 1618/1624 2000 +TSRA
TAF AMD EGLL 160600Z 1606/1706 18012KT CAVOK FM161200 22015G25KT 9999 SCT040
TAF LFBO 160500Z 1606/1712 VRB02KT 0400 FG VV002 BECMG 1608/1610 4000 BR BKN010 BECMG 1612/1614 9999 SCT030
VA ADVISORY - KARYMSKY volcano (Russia)
TC ADVISORY - Hurricane GLORIA (Miami TCAC)
SWX ADVISORY - HF COM and GNSS moderate degradation
The component emits change events with message type, tokens, and validation status.
Waiting for change events...
Copy this code to use the component in your own page (updates automatically with your settings)