Seeking Guidance on Custom Syntax Highlighting for a New Configuration Language

I am currently developing a new configuration language and I would like to understand what is the correct way to create custom syntax highlighting in the code block of the Markdown files. I would appreciate any guidance or tips on the correct approach to achieve this.

We use the Chroma syntax highlighter, so you will need to write a lexer and submit to that repository.