Request: Add Lua to highlight.js bundle
Simple Description Of The Request
The UI bundle for antora uses highlight.js for it's syntax highlighting, the current supported languages can be found at https://gitlab.com/antora/antora-ui-default/-/blob/master/src/js/vendor/highlight.bundle.js
, including a lot of famous programming languages and even plaintext. Therefore, i want to suggest the addition of the lua programming language to the highlight.js bundle used in the default UI bundle for antora.
Why Should Lua be added?
The TIOBE index aims to measure the popularity of programming languages based on the following criteria: https://www.tiobe.com/tiobe-index//programming-languages-definition/
, the popularity of a programming language influences the frequency of it's appearance on projects and documentation, these documentations can be built with the antora system using the default UI bundle, since it builds a understandable and good-looking website great for most people using it, then, the need for a lua syntax highlighting urges, since projects including lua snippets benefit from the syntax highlighting, most projects would start a personal fork for this minor change, maintaining it is necessary, the minor change would follow up with new updates and versions of the UI, removing the necessity for maintenance of a fork.
Wich change should be made?
The simplest way, adding a line for lua syntax highlighting on https://gitlab.com/antora/antora-ui-default/-/blob/master/src/js/vendor/highlight.bundle.js
, with the content: hljs.registerLanguage('lua', require('highlight.js/lib/languages/lua'))
, registering the highlighting for lua programming language, this wouldn't make the UI bundle much bigger, and it can also replace another programming language that does not frequently appear at antora-built documentations and neither have high popularity, taking the TIOBE index measure.