1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Regular expression in monaco editor integration with angular14

Discussão em 'Angular' iniciado por Divya Maheshwari, Setembro 10, 2024.

  1. I have integrated monaco editor in angular14 and have created a custom highlighter, I want to highlight only standalone keywords as per the list I have created, but it is highlighting the keywords from my list when they have alphanumeric characters or _ as prefix. Please modify the regular expression below.

    [/\b(external|in_map|internal|out_map|encoder|decoder|xml_schema|asn_block|external_only|session)\b/, 'keyword'],enter image description here

    Highlight only the standalone word from the keyword list

    Continue reading...

Compartilhe esta Página