diff --git a/src/components/CodeEditor.tsx b/src/components/CodeEditor.tsx index 3a168dd..76077ba 100644 --- a/src/components/CodeEditor.tsx +++ b/src/components/CodeEditor.tsx @@ -5,7 +5,10 @@ import { ValidationError, ZwiftoutException } from "zwiftout"; const highlight = (code: string): string => { return code - .replace(/^(Name|Author|Description|Warmup|Rest|Interval|Cooldown|FreeRide):/gm, "$&") + .replace( + /^(Name|Author|Description|Warmup|Rest|Interval|Cooldown|FreeRide|Ramp):/gm, + "$&", + ) .replace(/-?(\d{1,2}:)?\d{1,2}:\d{1,2}/g, "$&") .replace(/\d+%/g, "$&") .replace(/\d+rpm/g, "$&")