A Qt5 widget for editing G-Code.
Based upon QPlainTextEdit, with added comment and syntax highlighting plus line highlighting for use showing currently executing line in a GUI.
To use on Linux / Mac clone and build with:
git clone https://github.com/QGCoder/QGCodeEditor
cd QGCodeEditor
qmake
make
sudo make installTo run one of the examples:
cd examples
make
simple/simple
contextMenu/contextMenuOr build and install as a Debian package:
git clone https://github.com/QGCoder/QGCodeEditor
cd QGCodeEditor
sudo apt -y install -qq devscripts equivs lintian qt5-default
mk-build-deps -i -s sudo -t "apt --yes --no-install-recommends"
dpkg-buildpackage -b -rfakeroot -us -uc
sudo dpkg -i ../libqgcodeeditor*deb