BertrandBev / code_field

A customizable code text field supporting syntax highlighting
https://bertrandbev.github.io/code_field/
MIT License
232 stars 61 forks source link

How do i make a custom language? #15

Open elgansayer opened 3 years ago

elgansayer commented 3 years ago

I realise it's not an issue.

I am trying to make a custom language. how would i go about doing that?

Commenting and making Mode() available would be really helpful.,

BertrandBev commented 3 years ago

I guess you'd need to create a custom highlight JS mode https://github.com/git-touch/highlight.dart It's already available, go check out the custom_code_box in the examples!