'How to use custom highlight in Jupyterlab extension?

I am building a server extension for Jupiter Lab. I am using cookie-cutter template as an entry point for my extension.

I want to override the default highlighting for .ipynb files and highlight only some custom words.

How can I achieve this?

I am using typescript & python for developing my extension.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source