Debian Codegraph @

README.md

raw symbols SCIP
1 # Qt Code Editor Widget
2 It's a widget for editing/viewing code.
3
4 This project uses a resource named `qcodeeditor_resources.qrc`. The main application
5 must not use a resource file with the same name.
6
7 (It's not a project from a Qt example.)
8
9 ## Requirements
10 0. C++11 featured compiler.
11 0. Qt 5.
12
13 ## Abilities
14 1. Auto parentheses.
15 1. Different highlight rules.
16 1. Auto indentation.
17 1. Replace tabs with spaces.
18 1. GLSL completion rules.
19 1. GLSL highlight rules.
20 1. C++ highlight rules.
21 1. XML highlight rules.
22 1. JSON highligh rules.
23 1. Frame selection.
24 1. Qt Creator styles.
25
26 ## Build
27 It's a CMake-based library, so it can be used as a submodule (see the example).
28 But here are the steps to build it as a static library (for external use for example).
29
30 1. Clone the repository: `git clone https://github.com/Megaxela/QCodeEditor`
31 1. Go into the repository: `cd QCodeEditor`
32 1. Create a build folder: `mkdir build`
33 1. Go into the build folder: `cd build`
34 1. Generate a build file for your compiler: `cmake ..`
35 1. If you need to build the example, specify `-DBUILD_EXAMPLE=On` on this step.
36 1. Build the library: `cmake --build .`
37
38 ## Example
39
40 By default, `QCodeEditor` uses the standard QtCreator theme. But you may specify
41 your own by parsing it with `QSyntaxStyle`. The example uses [Dracula](https://draculatheme.com) theme.
42 (See the example for more.)
43
44 <img src="https://github.com/Megaxela/QCodeEditor/blob/master/example/image/preview.png">
45
46 ## LICENSE
47
48 <img align="right" src="http://opensource.org/trademarks/opensource/OSI-Approved-License-100x137.png">
49
50 Library is licensed under the [MIT License](https://opensource.org/licenses/MIT)
51
52 Permission is hereby granted, free of charge, to any person obtaining a copy
53 of this software and associated documentation files (the "Software"), to deal
54 in the Software without restriction, including without limitation the rights
55 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
56 copies of the Software, and to permit persons to whom the Software is
57 furnished to do so, subject to the following conditions:
58
59 The above copyright notice and this permission notice shall be included in all
60 copies or substantial portions of the Software.
61
62 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
64 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
66 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
67 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
68 SOFTWARE.