Good afternoon.
Can I create plugins for Sublime Text 3/4 in a language other than python, for example C++?
If so, how?
Thanks.
Создание плагина для ST3 на C++
NQUARE
#1
0 Likes
bschaaf
#2
You can write a python plugin that uses code written in C++ but you can’t directly write plugins in C++.
0 Likes
NQUARE
#3
Yes, but I don’t know python very well. Is it possible to write C++ code that will call python code and make ST see this plugin (. cpp)?
0 Likes
bschaaf
#4
Kind of. Sublime Text will not load a plugin written in C++, but you can make a python plugin load a compiled C++ library. See https://docs.python.org/3/extending/extending.html
0 Likes
NQUARE
#5
I’ve tried this, but this method requires writing a lot of python code.
How else can I minimize the size of python code?
0 Likes
pll_llq
#6
There are a number of ways getting cpp to python.
- You can build your cpp app with python bindings
- You can use tools like https://wiki.python.org/moin/cppyy to compile cpp on the fly
But afaik there’s no way you can make a plugin with zero python code
Удачи!
0 Likes