Proposal: Add highlighting support for Go/Hugo templates to Discourse

I developed highlight.js grammars and Discourse plugins for Go and Hugo templates.

Should be easy to integrate and result in better display of Hugo templates in Discourse.

Even without utilizing the advanced stylings you will get an emediate effect of proper highlighting the standard template stuff.

Features

Highlight.js Grammars

  • Support for:

  • Hugo and Go templates

  • Html and Text templates

  • Full coverage of:

    • Template keywords
    • Built-in functions
    • Aliases
  • Improved automatic language detection

  • Advanced highlighting scopes

  • Prebuilt **browser bundle** for immediate use

Discourse Integration

  • Theme components built on the provided grammars
  • Enables proper syntax highlighting in Discourse environments

Documentation and Repository