9

Currently, the Ballerina tag does not have code highlighting associated with it. Can we add the Ballerina language syntax highlighting to the questions that are tagged with ballerina?

This question was according to this answer: What is syntax highlighting and how does it work?

  • It seems like Highlight.js is not yet supporting Ballerina, but adding <!-- language-all: lang-ballerina --> to a question on SO seems to enable syntax highlighting for Ballerina.
5
  • 1
  • @RobertLongson Seems it is not supported by HightlightJS, but when you add <!-- language-all: lang-ballerina -->, the code starts highlighting.
    – ThisaruG
    Dec 21, 2022 at 8:43
  • @AndrewT. I asked this following the answer to the question you mentioned. As per that answer we need to add a feature-request to update the syntax highlighting for a particular tag.
    – ThisaruG
    Dec 21, 2022 at 8:43
  • 2
    "but when you add <!-- language-all: lang-ballerina -->, the code starts highlighting." please read the FAQ once again. The language is not yet supported, thus highlight.js guessed and picked one from the available languages. In this case is language-go
    – Andrew T.
    Dec 21, 2022 at 8:47
  • Thanks, we will look into adding Ballerina to HighlightJS.
    – ThisaruG
    Dec 21, 2022 at 8:50

0

Browse other questions tagged .