ccrma / webchuck

ChucK on the Web
https://chuck.stanford.edu/webchuck
MIT License
42 stars 8 forks source link

webchuck ACE syntax highlight #28

Closed Kizjkre closed 4 months ago

Kizjkre commented 10 months ago
terryzfeng commented 4 months ago

Following up on this, would we want this in the Monaco IDE editor, Ace Editor, or some variant of Prism.js? @Kizjkre

Kizjkre commented 4 months ago

Seems like both of these are added on the beta version? Hex numbers are highlighted dark blue and 1.5.x.x syntax like eon are recognized.

terryzfeng commented 4 months ago

Oh yeah, I added eon and a couple other things manually to the syntax highlight list of Monaco here: https://github.com/terryzfeng/webchuck-ide/blob/871695ac1505779a9f87aae8f49e0f03e38d3e17/src/components/monaco/chuck-lang.ts#L66

Hex is handled here: https://github.com/terryzfeng/webchuck-ide/blob/871695ac1505779a9f87aae8f49e0f03e38d3e17/src/components/monaco/chuck-lang.ts#L193-L196

I guess it's all good on the IDE then :)

Kizjkre commented 4 months ago

Yeah, looks good; I'll close this.