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

Just for Info:

while checking how it’s going with the highlight I found that sometimes blocks are not highlighted at all…and not only with my grammar thought about timing linits, … but it was a hard CAP by code block size.

and here is a PR that should solve the problem

  • Still a hard limit on 30000 bytes
  • raise the autodetect limit to 2K
  • if it’s longer, use the first 2000 bytes to try autodetect

and live: How to capture/generate revisions of page? - #2 by Welsh