Highlight a string passed as argument and return a string that can directly be printed

highlightText

  • Parameters

    • src: string

      The code

    • lang: ShjLanguage

      The language of the code

    Returns Promise<string>

    The highlighted string