PrismJS / prism

Lightweight, robust, elegant syntax highlighting.
https://prismjs.com
MIT License
12.33k stars 1.29k forks source link

any language for QT? #2110

Open hakankoesekadam opened 5 years ago

hakankoesekadam commented 5 years ago

Language Qt is a cross-platform application development framework for desktop, embedded and mobile. Supported Platforms include Linux, OS X, Windows, VxWorks, QNX, Android, iOS, BlackBerry, Sailfish OS and others.

Qt is not a programming language on its own. It is a framework written in C++. A preprocessor, the MOC (Meta-Object Compiler), is used to extend the C++ language with features like signals and slots. Before the compilation step, the MOC parses the source files written in Qt-extended C++ and generates standard compliant C++ sources from them. Thus the framework itself and applications/libraries using it can be compiled by any standard compliant C++ compiler like Clang, GCC, ICC, MinGW and MSVC.

Additional resources https://www.qt.io/

is there any language which I could use for QT?

Thank you guys and have a nice day

RunDevelopment commented 5 years ago

To be clear: You want to highlight Qt's C++ extensions.

is there any language which I could use for QT?

Assuming that it's a C++ extension, you can use the usual C++. The added syntactic features won't be highlighted correctly but everything else, which sort of resembles vanilla C++, will.

hakankoesekadam commented 5 years ago

yes. OK thanks a lot for your answer.

RunDevelopment commented 5 years ago

You can keep it open and I'll add a MOC variant of C++ when I find the time.

I was just saying that you can use the vanilla C++ language in the meantime until said variant is available.

Fredro commented 5 years ago

What about QML? It's part of QT but is a markup language with Javascript embedded for evaluation.

hakankoesekadam commented 4 years ago

@Fredro thanks for your answer but I need QT.

RunDevelopment commented 4 years ago

@Fredro I made a new issue for QML #2117.