Custom Highlight Language Support

Hugo use chroma solution render code highlight

I think use expose chroma register lexer api on configuration file


      - customized-lexer.xml
1 Like

+1, if this is possible to be implemented.

User can create/fix lexer quickly without taking these long route:

  1. Create issues/PR in chroma project
  2. chroma issues/PR fixed/merged
  3. chroma new version release
  4. Hugo update new chroma version
  5. Hugo new version release

Also, we can create our own opinionated lexer for our specific case that has no chance to be accepted in chroma project.