highlightjs / highlight.js

JavaScript syntax highlighter with language auto-detection and zero dependencies.
https://highlightjs.org/
BSD 3-Clause "New" or "Revised" License
23.56k stars 3.58k forks source link

[MQL5 Support] ... #2864

Closed marco2030-hub closed 3 years ago

marco2030-hub commented 3 years ago

Consider adding MQL5 support for highlighting. It is a C/C++ variety.

joshgoebel commented 3 years ago

It is a C/C++ variety.

Some quickly googling seems to indicate it's a scripting language similar to C++:

MetaQuotes Language 5 (MQL5) is a high-level language designed for developing technical indicators, trading robots and utility applications, which automate financial trading. MQL5 has been developed by MetaQuotes Software Corp. for their trading platform. The language syntax is very close to C++ enabling programmers to develop applications in the object-oriented programming (OOP) style.

Consider adding MQL5 support for highlighting.

See On requesting new languages... the short answer is that the core team doesn't add support for new languages. The long answer is - well go read it. :-) If you wanted to contribute a 3rd party grammar for MQL5 support that'd be awesome.

But a more practical question: Why not just use the C++ grammar to highlight MQL5 code if they are so close?

joshgoebel commented 3 years ago

Closing per explanation in documentation.