This follows on from Syntax highlighting for proof assistants, which establishes that it would be nice to have syntax highlighting, but incorrectly concludes that the ball is not in StackExchange's court.
As mentioned in an answer there, the tool StackExchange uses for highlighting, highlight.js, supports Coq (natively) and Lean (via a third-party extension, highlightjs-lean). Note that highlight.js
is no longer accepting new languages, so the Lean extension will always be third-party.
The list in the "What is syntax highlighting and how does it work?" meta post mentions that among the enabled languages is:
- Mathematica / Wolfram Language:
lang-mathematica
,lang-mma
, (lang-wl
)
(Mathematica SE only)
A little more digging reveals that this feature was enabled on Mathematica.SE on 2012-01-18, which was during the Mathematica.SE Private Beta (which ended on 2012-01-25). Inspecting the source reveals this has been done by including an additional https://cdn.sstatic.net/Js/third-party/highlight.js/additional-langs/lang-mma.min.js
file that is not present on most SE sites.
Since there is precedent for enabling niche highlighters on other StackExchange sites during their beta phases, can lang-coq
(coq) and lang-lean
(lean) highlighters be enabled on Proof Assistants? Or is this something that should wait for Beta to end?
Edit: I'm aware that the request to add Julia syntax highlighting is status-deferred, but thought the situation might be different here since this is not a request for a new site-wide highlighter but just for one SE site, and ProofAssistants certainly does not have the traffic considerations that StackOverflow does!
mathematica.stackexchange.com
you can see it loadshttps://cdn.sstatic.net/Js/third-party/highlight.js/additional-langs/lang-mma.min.js?v=5
which is clearly highlight.js and not Prettify. $\endgroup$ACL2
, you'll need to write a highlighter for it. I requested coq and lean because those both do have lots of questions, and are supported by highlight.js. $\endgroup$