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

Sub languages support #17

Open imsudip opened 3 years ago

imsudip commented 3 years ago

The highlight package detects when more than one languages are in a text and treat them accordingly. Like the xml language switch to javascript whenever it detects a tag of script. But this somehow doesn't work with this package. I tried looking into your code it might be related to how you are registering the languages.