Git Product home page Git Product logo

qt-widgets / qutepart-cpp-code-editor-widget-with-syntax-highlighting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andreikop/qutepart-cpp

0.0 1.0 0.0 1.6 MB

Qutepart. Code editor widget for C++ / Qt5. Syntax highlighting and many more useful features

CMake 1.02% Dockerfile 0.09% Makefile 0.07% Clojure 0.33% PowerShell 0.45% C# 0.14% C 0.54% C++ 84.10% Elixir 1.97% ASP 0.29% Awk 0.15% TeX 0.35% CSS 4.61% D 0.66% Stata 0.57% Erlang 0.43% Fortran 1.07% GDB 1.13% GLSL 0.26% Haskell 1.77%

qutepart-cpp-code-editor-widget-with-syntax-highlighting's Introduction

Code editor widget for C++/Qt5

Written in pure C++/Qt5. No any dependencies.

Component has been created for Enki editor

Currently there are no API documentation, but the header is quite clear. See also example application.

Features

All features are configurable

  • Syntax highlighting for 196 languages
  • Smart indentation algorithms:
    • Generic
    • Python
    • Ruby
    • XML
    • Lisp
    • Scheme
    • C, C++
    • JavaScript
    • Java
    • PHP
    • Go
    • And many others
  • Line numbers
  • Bracket highlighting
  • Visible witespaces
  • Marker for too long lines
  • Bookmarks
  • Current line highlighting

Build dependencies

  • C++ compiler
  • CMake or qmake
  • Qt5 headers

Building and installation

CMake and qmake is supported. CMake is recommented.

mkdir build
cd build
cmake ..
make
make install  # might require sudo

Author

Andrei Kopats

Bug reports, patches

Github page

Qutepart and Katepart

Kate and Katepart (an editor component) is really cool software. The Kate authors and community have created, probably, the biggest set of highlighters and indenters for programming languages.

  • Qutepart uses Kate syntax highlighters (XML files)
  • Qutepart contains a port from Javascript to C++ of Kate indenters
  • Qutepart doesn't contain Katepart code.

Nothing is wrong with Katepart. Qutepart has been created to enable reusing highlighters and indenters in projects where a KDE dependency is not acceptable.

License

LGPL v2

I don't mind if you use the code under WTFPL license. But consult you layers if I have right to release it this way.

qutepart-cpp-code-editor-widget-with-syntax-highlighting's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.