├── .directory ├── .gitignore ├── .gitmodules ├── LICENSE ├── QodeEdit.pro ├── QodeEditConfig.h.in ├── QodeEditExampleConfig.h.in ├── README ├── build-all.pro ├── config.pri ├── example.pro ├── example ├── .gitignore ├── UIMain.cpp ├── UIMain.h ├── UIMain.ui └── main.cpp ├── fake-functions.pri ├── functions.pri ├── macx.pri ├── qmake-extensions.pri ├── resources └── qodeedit.qrc ├── share ├── schemas │ ├── kate-Normal.kateschema │ └── kateschemarc ├── syntax │ ├── CMakeLists.txt │ ├── abap.xml │ ├── abc.xml │ ├── actionscript.xml │ ├── ada.xml │ ├── ahdl.xml │ ├── alert.xml │ ├── alert_indent.xml │ ├── ample.xml │ ├── ansforth94.xml │ ├── ansic89.xml │ ├── ansys.xml │ ├── apache.xml │ ├── asm-avr.xml │ ├── asm-dsp56k.xml │ ├── asm-m68k.xml │ ├── asm6502.xml │ ├── asn1.xml │ ├── asp.xml │ ├── asterisk.xml │ ├── awk.xml │ ├── bash.xml │ ├── bibtex.xml │ ├── bmethod.xml │ ├── boo.xml │ ├── c.xml │ ├── cg.xml │ ├── cgis.xml │ ├── changelog.xml │ ├── checkdtd │ ├── cisco.xml │ ├── clipper.xml │ ├── clojure.xml │ ├── cmake-gen.sh │ ├── cmake.xml │ ├── coffee.xml │ ├── coldfusion.xml │ ├── commonlisp.xml │ ├── component-pascal.xml │ ├── cpp.xml │ ├── crk.xml │ ├── cs.xml │ ├── css.xml │ ├── cue.xml │ ├── d.xml │ ├── debianchangelog.xml │ ├── debiancontrol.xml │ ├── desktop.xml │ ├── diff.xml │ ├── djangotemplate.xml │ ├── dosbat.xml │ ├── dot.xml │ ├── doxygen.xml │ ├── doxygenlua.xml │ ├── dtd.xml │ ├── dtd2xsd.pl │ ├── e.xml │ ├── eiffel.xml │ ├── email.xml │ ├── erlang.xml │ ├── euphoria.xml │ ├── ferite.xml │ ├── fgl-4gl.xml │ ├── fgl-per.xml │ ├── find-trivial-regexpr.sh │ ├── fortran.xml │ ├── freebasic.xml │ ├── fsharp.xml │ ├── fstab.xml │ ├── gap.xml │ ├── gdb.xml │ ├── gdl.xml │ ├── generate-php.pl │ ├── gettext.xml │ ├── glosstex.xml │ ├── glsl.xml │ ├── gnuassembler.xml │ ├── go.xml │ ├── grammar.xml │ ├── haskell.xml │ ├── haxe.xml │ ├── html.xml │ ├── idconsole.xml │ ├── idl.xml │ ├── ilerpg.xml │ ├── inform.xml │ ├── ini.xml │ ├── jam.xml │ ├── java.xml │ ├── javadoc.xml │ ├── javascript.xml │ ├── json.xml │ ├── jsp.xml │ ├── kbasic.xml │ ├── language.dtd │ ├── language.xsd │ ├── latex.xml │ ├── ld.xml │ ├── ldif.xml │ ├── lex.xml │ ├── lilypond.xml │ ├── list-keywords-ldif.awk │ ├── list-keywords-ldif.sh │ ├── literate-haskell.xml │ ├── logtalk.xml │ ├── lpc.xml │ ├── lsl.xml │ ├── lua.xml │ ├── m3u.xml │ ├── m4.xml │ ├── mab.xml │ ├── makefile.xml │ ├── mandoc.xml │ ├── mason.xml │ ├── matlab.xml │ ├── maxima.xml │ ├── mediawiki.xml │ ├── mel.xml │ ├── mergetagtext.xml │ ├── metafont.xml │ ├── mips.xml │ ├── modelica.xml │ ├── modelines.xml │ ├── modula-2.xml │ ├── monobasic.xml │ ├── mup.xml │ ├── nasm.xml │ ├── nemerle.xml │ ├── noweb.xml │ ├── objectivec.xml │ ├── objectivecpp.xml │ ├── ocaml.xml │ ├── octave.xml │ ├── oors.xml │ ├── opal.xml │ ├── pango.xml │ ├── pascal.xml │ ├── perl.xml │ ├── pgn.xml │ ├── php.xml │ ├── picsrc.xml │ ├── pig.xml │ ├── pike.xml │ ├── postscript.xml │ ├── povray.xml │ ├── progress.xml │ ├── prolog.xml │ ├── purebasic.xml │ ├── python.xml │ ├── qmake.xml │ ├── qml.xml │ ├── r.xml │ ├── rapidq.xml │ ├── relaxng.xml │ ├── relaxngcompact.xml │ ├── rest.xml │ ├── rexx.xml │ ├── rhtml.xml │ ├── rib.xml │ ├── roff.xml │ ├── rpmspec.xml │ ├── rsiidl.xml │ ├── ruby.xml │ ├── sather.xml │ ├── scala.xml │ ├── scheme.xml │ ├── sci.xml │ ├── scss.xml │ ├── sed.xml │ ├── sgml.xml │ ├── sieve.xml │ ├── sisu.xml │ ├── sml.xml │ ├── spice.xml │ ├── sql-mysql.xml │ ├── sql-postgresql.xml │ ├── sql.xml │ ├── stata.xml │ ├── syntax.template │ ├── systemc.xml │ ├── systemverilog.xml │ ├── tads3.xml │ ├── tcl.xml │ ├── tcsh.xml │ ├── texinfo.xml │ ├── tibasic.xml │ ├── txt2tags.xml │ ├── uscript.xml │ ├── valgrind-suppression.xml │ ├── velocity.xml │ ├── vera.xml │ ├── verilog.xml │ ├── vhdl.xml │ ├── vrml.xml │ ├── winehq.xml │ ├── wml.xml │ ├── xharbour.xml │ ├── xml.xml │ ├── xmldebug.xml │ ├── xorg.xml │ ├── xslt.xml │ ├── xul.xml │ ├── yacas.xml │ ├── yacc.xml │ ├── yaml.xml │ ├── zonnon.xml │ └── zsh.xml └── tests │ ├── bug213964.cpp │ ├── bug213964.h │ ├── bug242723_test.cpp │ ├── bug242723_test.h │ ├── bug286887.cpp │ ├── bug286887.h │ ├── bug294241.cpp │ ├── bug294241.h │ ├── bug294241.php │ ├── bug294241.rb │ ├── bug294241.xml │ ├── bug294750.cpp │ ├── bug294750.h │ ├── bug294756.cpp │ ├── bug294756.h │ ├── codecompletiontestmodel.cpp │ ├── codecompletiontestmodel.h │ ├── codecompletiontestmodels.h │ ├── completion_test.cpp │ ├── completion_test.h │ ├── encoding │ ├── cp1251.txt │ ├── cyrillic_utf8.txt │ ├── kateencodingtest.cpp │ ├── koi8-r.txt │ ├── latin15.txt │ ├── one-char-latin-15.txt │ ├── utf16.txt │ ├── utf16be.txt │ ├── utf32.txt │ ├── utf32be.txt │ └── utf8.txt │ ├── foldedselection_test.cpp │ ├── foldedselection_test.h │ ├── folding-crash.py │ ├── hl │ ├── ejp1.asm │ ├── highlight.4th │ ├── highlight.R │ ├── highlight.abc │ ├── highlight.ahdl │ ├── highlight.asm-avr │ ├── highlight.asm-nasm │ ├── highlight.asp │ ├── highlight.awk │ ├── highlight.bib │ ├── highlight.clj │ ├── highlight.css │ ├── highlight.d │ ├── highlight.do │ ├── highlight.dox │ ├── highlight.e │ ├── highlight.erl │ ├── highlight.exu │ ├── highlight.f90 │ ├── highlight.fs │ ├── highlight.glsl │ ├── highlight.hs │ ├── highlight.jsp │ ├── highlight.ld │ ├── highlight.lex │ ├── highlight.lhs │ ├── highlight.lisp │ ├── highlight.ly │ ├── highlight.m │ ├── highlight.mac │ ├── highlight.mup │ ├── highlight.pb │ ├── highlight.php │ ├── highlight.pike │ ├── highlight.pl │ ├── highlight.pov │ ├── highlight.prg │ ├── highlight.qml │ ├── highlight.rb │ ├── highlight.rib │ ├── highlight.scheme │ ├── highlight.sed │ ├── highlight.sh │ ├── highlight.sp │ ├── highlight.spec │ ├── highlight.t2t │ ├── highlight.tcl │ ├── highlight.tex │ ├── highlight.wrl │ ├── highlight.xml │ ├── highlight.xsl │ ├── highlight.y │ ├── highlight1.spec │ ├── highlight_lpc.c │ ├── highlight_ocaml.ml │ ├── highlight_octave.m │ ├── test.js │ └── verilog.v │ ├── indenttest.cpp │ ├── indenttest.h │ ├── katedocument_test.cpp │ ├── katedocument_test.h │ ├── katefolding_test.cpp │ ├── katefolding_test.h │ ├── katetextbuffertest.cpp │ ├── katetextbuffertest.h │ ├── kateview_test.cpp │ ├── kateview_test.h │ ├── kte_documentcursor.cpp │ ├── kte_documentcursor.h │ ├── modificationsystem_test.cpp │ ├── modificationsystem_test.h │ ├── movingcursor_test.cpp │ ├── movingcursor_test.h │ ├── movingrange_test.cpp │ ├── movingrange_test.h │ ├── plaintextsearch_test.cpp │ ├── plaintextsearch_test.h │ ├── range_test.cpp │ ├── range_test.h │ ├── regexpsearch_test.cpp │ ├── regexpsearch_test.h │ ├── revision_test.cpp │ ├── revision_test.h │ ├── sands_indentation_test.cpp │ ├── scriptdocument_test.cpp │ ├── scriptdocument_test.h │ ├── searchbar_test.cpp │ ├── searchbar_test.h │ ├── templatehandler_test.cpp │ ├── templatehandler_test.h │ ├── test.uc │ ├── testutils.cpp │ ├── testutils.h │ ├── undomanager_test.cpp │ ├── undomanager_test.h │ ├── vimode_test.cpp │ └── vimode_test.h └── src ├── .gitignore ├── Manager.cpp ├── Manager.h ├── QodeEdit.cpp ├── QodeEdit.h ├── Threading.cpp ├── Threading.h ├── Tools.cpp ├── Tools.h ├── editor ├── CodeEditor.cpp ├── CodeEditor.h ├── PlainTextDocumentLayout.cpp ├── PlainTextDocumentLayout.h ├── TextBlockUserData.cpp ├── TextBlockUserData.h ├── TextDocument.cpp └── TextDocument.h ├── margin ├── AbstractMargin.cpp ├── AbstractMargin.h ├── LineBookmarkMargin.cpp ├── LineBookmarkMargin.h ├── LineNumberMargin.cpp ├── LineNumberMargin.h ├── LineRevisionMargin.cpp ├── LineRevisionMargin.h ├── LineSpacingMargin.cpp ├── LineSpacingMargin.h ├── MarginStacker.cpp └── MarginStacker.h ├── syntax ├── ComboBox.cpp ├── ComboBox.h ├── Comment.cpp ├── Comment.h ├── Configuration.cpp ├── Configuration.h ├── Context.cpp ├── Context.h ├── ContextStack.cpp ├── ContextStack.h ├── ContextSwitcher.cpp ├── ContextSwitcher.h ├── Document.cpp ├── Document.h ├── DocumentBuilder.cpp ├── DocumentBuilder.h ├── EmptyLine.cpp ├── EmptyLine.h ├── Encoding.cpp ├── Encoding.h ├── Folding.cpp ├── Folding.h ├── General.cpp ├── General.h ├── Helpers.h ├── Highlighter.cpp ├── Highlighter.h ├── Highlighting.cpp ├── Highlighting.h ├── Indentation.cpp ├── Indentation.h ├── ItemData.cpp ├── ItemData.h ├── Keywords.cpp ├── Keywords.h ├── List.h ├── Model.cpp ├── Model.h ├── Parser.cpp ├── Parser.h ├── Rule.cpp ├── Rule.h ├── SpellChecking.cpp └── SpellChecking.h └── theme ├── Theme.cpp └── Theme.h /.directory: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Icon=accessories-text-editor 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | /Makefile* 3 | /build 4 | *~ 5 | /*.pro.user* 6 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "mimetypes-qt4"] 2 | path = mimetypes-qt4 3 | url = git://github.com/pasnox/mimetypes-qt4.git 4 | -------------------------------------------------------------------------------- /QodeEditConfig.h.in: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Created using Monkey Studio IDE v1.9.0.1 (1.9.0.1) 4 | ** Authors : Filipe Azevedo aka Nox P@sNox and The QodeEdit development team 5 | ** Project : QodeEdit 6 | ** FileName : QodeEditConfig.h 7 | ** Date : 2012-09-02T23:04:46 8 | ** License : LGPL3 9 | ** Comment : A source code component editor based on QPlainTextEdit/QTextDocument/QSyntaxHighlighter and Kate xml language definition files. 10 | ** Home Page : https://github.com/pasnox/qodeedit 11 | ** 12 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 14 | ** 15 | ****************************************************************************/ 16 | 17 | // Auto generated file do not edit 18 | 19 | #define PACKAGE_NAME "QodeEdit" 20 | #define PACKAGE_ABSOLUTE_DATA_DIR "$${ABSOLUTE_DATA_DIR}" 21 | #define PACKAGE_VERSION "$${VERSION}" 22 | -------------------------------------------------------------------------------- /QodeEditExampleConfig.h.in: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Created using Monkey Studio IDE v1.9.0.1 (1.9.0.1) 4 | ** Authors : Filipe Azevedo aka Nox P@sNox and The QodeEdit development team 5 | ** Project : QodeEdit 6 | ** FileName : QodeEditExampleConfig.h 7 | ** Date : 2012-09-02T23:04:46 8 | ** License : LGPL3 9 | ** Comment : A source code component editor based on QPlainTextEdit/QTextDocument/QSyntaxHighlighter and Kate xml language definition files. 10 | ** Home Page : https://github.com/pasnox/qodeedit 11 | ** 12 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 14 | ** 15 | ****************************************************************************/ 16 | 17 | // Auto generated file do not edit 18 | 19 | #define QICON_THEMES_PATH "$${QICON_THEMES_PATH}" 20 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | QodeEdit Source Code Editor 2 | =========================== 3 | 4 | A source code component editor for Qt based on QPlainTextEdit, QTextDocument and QSyntaxHighlighter with the use of Kate xml language definition files. 5 | 6 | It could be considered an alternative/replacement of QScintilla library. 7 | 8 | Homepage: 9 | https://github.com/pasnox/qodeedit 10 | 11 | Development team: 12 | Filipe Azevedo aka Nox P@sNox (main) 13 | Illya Kovalevskyy (editor) 14 | 15 | License: 16 | LGPL3 17 | -------------------------------------------------------------------------------- /build-all.pro: -------------------------------------------------------------------------------- 1 | ########################################################################################### 2 | ## Created using Monkey Studio IDE v1.9.0.1 (1.9.0.1) 3 | ## 4 | ## Author : Filipe Azevedo aka Nox P@sNox and The QodeEdit development team 5 | ## Project : QodeEdit 6 | ## FileName : build-all.pro 7 | ## Date : 2012-05-27T13:18:50 8 | ## License : LGPL3 9 | ## Comment : A source code component editor based on QPlainTextEdit/QTextDocument/QSyntaxHighlighter and Kate xml language definition files. 10 | ## Home Page : https://github.com/pasnox/qodeedit 11 | ## 12 | ## This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 13 | ## WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 14 | ## 15 | ########################################################################################### 16 | XUP.QT_VERSION = Qt System (4.8.1) 17 | XUP.OTHERS_PLATFORM_TARGET_DEFAULT = bin/Linux/QodeEdit_debug 18 | XUP.MAC_PLATFORM_TARGET_DEFAULT = bin/Darwin/QodeEdit_debug.app 19 | 20 | include( config.pri ) 21 | 22 | TEMPLATE = subdirs 23 | CONFIG *= ordered 24 | 25 | SUBDIRS = QodeEdit.pro \ 26 | example.pro -------------------------------------------------------------------------------- /example.pro: -------------------------------------------------------------------------------- 1 | ########################################################################################### 2 | ## Created using Monkey Studio IDE v1.9.0.1 (1.9.0.1) 3 | ## 4 | ## Author : Filipe Azevedo aka Nox P@sNox and The QodeEdit development team 5 | ## Project : QodeEdit 6 | ## FileName : example.pro 7 | ## Date : 2012-05-27T13:18:50 8 | ## License : LGPL3 9 | ## Comment : A source code component editor based on QPlainTextEdit/QTextDocument/QSyntaxHighlighter and Kate xml language definition files. 10 | ## Home Page : https://github.com/pasnox/qodeedit 11 | ## 12 | ## This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 13 | ## WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 14 | ## 15 | ########################################################################################### 16 | win32|macx { 17 | OXYGEN_THEME_PATH = $$PWD/../oxygen-icons-png.git 18 | 19 | exists( $${OXYGEN_THEME_PATH} ) { 20 | QICON_THEMES_PATH = $${OXYGEN_THEME_PATH} 21 | } 22 | } 23 | 24 | include( config.pri ) 25 | initializeProject( app, $${BUILD_TARGET}, $${BUILD_MODE}, $${BUILD_PATH}/$${TARGET_NAME}, $${BUILD_TARGET_PATH} ) 26 | autoGenerateFile( "QodeEditExampleConfig.h.in", "example/QodeEditExampleConfig.h" ) 27 | 28 | greaterThan( QT_MAJOR_VERSION, 4 ):QT *= widgets 29 | 30 | INCLUDEPATH *= $$getFolders( $${PWD}/example ) $$getFolders( $${PWD}/src ) 31 | DEPENDPATH *= $${INCLUDEPATH} 32 | 33 | LIBS *= -L$${BUILD_TARGET_PATH} -l$$targetForMode( QodeEdit ) 34 | 35 | FORMS *= \ 36 | example/UIMain.ui 37 | 38 | HEADERS *= \ 39 | example/UIMain.h 40 | 41 | SOURCES *= example/main.cpp \ 42 | example/UIMain.cpp 43 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | /QodeEditExampleConfig.h 2 | -------------------------------------------------------------------------------- /example/main.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Created using Monkey Studio IDE v1.9.0.1 (1.9.0.1) 4 | ** Authors : Filipe Azevedo aka Nox P@sNox and The QodeEdit development team 5 | ** Project : QodeEdit 6 | ** FileName : main.cpp 7 | ** Date : 2012-09-02T23:04:12 8 | ** License : LGPL3 9 | ** Comment : A source code component editor based on QPlainTextEdit/QTextDocument/QSyntaxHighlighter and Kate xml language definition files. 10 | ** Home Page : https://github.com/pasnox/qodeedit 11 | ** 12 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 14 | ** 15 | ****************************************************************************/ 16 | #include 17 | 18 | #include "QodeEditExampleConfig.h" 19 | #include "UIMain.h" 20 | 21 | int main( int argc, char** argv ) 22 | { 23 | QApplication app( argc, argv ); 24 | 25 | #if defined( Q_OS_MAC ) || defined( Q_OS_WIN ) 26 | const QFileInfo themes( QString::fromUtf8( QICON_THEMES_PATH ) ); 27 | 28 | if ( themes.exists() ) { 29 | QStringList paths = QIcon::themeSearchPaths(); 30 | paths << themes.absoluteFilePath(); 31 | QIcon::setThemeSearchPaths( paths ); 32 | QIcon::setThemeName( "oxygen" ); 33 | } 34 | #endif 35 | 36 | QRect rect = QRect( QPoint(), QSize( 640, 480 ) ); 37 | rect.moveCenter( QApplication::desktop()->availableGeometry().center() ); 38 | 39 | UIMain window; 40 | window.setGeometry( rect ); 41 | window.showMaximized(); 42 | window.raise(); 43 | 44 | return app.exec(); 45 | } 46 | -------------------------------------------------------------------------------- /fake-functions.pri: -------------------------------------------------------------------------------- 1 | ########################################################################################### 2 | ## Created using Monkey Studio IDE v1.9.0.1 (1.9.0.1) 3 | ## 4 | ## Author : Filipe Azevedo aka Nox P@sNox 5 | ## Project : fake-functions.pri 6 | ## FileName : fake-functions.pri 7 | ## Date : 2012-07-28T13:13:40 8 | ## License : LGPL3 9 | ## Comment : Creating using Monkey Studio RAD 10 | ## Home Page : https://github.com/pasnox/qmake-extensions 11 | ## 12 | ## This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 13 | ## WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 14 | ## 15 | ########################################################################################### 16 | 17 | defineReplace( getFolders ) { 18 | } 19 | 20 | defineReplace( getRelativeFolders ) { 21 | } 22 | 23 | defineReplace( buildMode ) { 24 | } 25 | 26 | defineReplace( targetForMode ) { 27 | } 28 | 29 | defineTest( setTemplate ) { 30 | } 31 | 32 | defineTest( setTarget ) { 33 | } 34 | 35 | defineTest( setTemporaryDirectories ) { 36 | } 37 | 38 | defineTest( setTargetDirectory ) { 39 | } 40 | 41 | defineTest( autoGenerateFile ) { 42 | } 43 | -------------------------------------------------------------------------------- /macx.pri: -------------------------------------------------------------------------------- 1 | ########################################################################################### 2 | ## Created using Monkey Studio IDE v1.9.0.1 (1.9.0.1) 3 | ## 4 | ## Author : Filipe Azevedo aka Nox P@sNox and The QodeEdit development team 5 | ## Project : QodeEdit 6 | ## FileName : macx.pri 7 | ## Date : 2012-05-27T13:18:50 8 | ## License : LGPL3 9 | ## Comment : A source code component editor based on QPlainTextEdit/QTextDocument/QSyntaxHighlighter and Kate xml language definition files. 10 | ## Home Page : https://github.com/pasnox/qodeedit 11 | ## 12 | ## This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 13 | ## WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 14 | ## 15 | ########################################################################################### 16 | 17 | # Mac universal build from 10.3 & up 18 | 19 | macx { 20 | SDK_PATH = $$(MAC_SDKS_PATH) 21 | isEmpty( SDK_PATH ):SDK_PATH = /Developer/SDKs 22 | CONFIG *= app_bundle 23 | 24 | universal { 25 | QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3 26 | QMAKE_MAC_SDK = $${SDK_PATH}/MacOSX10.6.sdk 27 | CONFIG -= x86_64 28 | CONFIG *= x86 29 | CONFIG *= ppc 30 | } 31 | 32 | # this link is required for building the ppc port to avoid the undefined __Unwind_Resume symbol 33 | CONFIG( ppc ):LIBS *= -lgcc_eh 34 | } 35 | -------------------------------------------------------------------------------- /qmake-extensions.pri: -------------------------------------------------------------------------------- 1 | ########################################################################################### 2 | ## Created using Monkey Studio IDE v1.9.0.1 (1.9.0.1) 3 | ## 4 | ## Author : Filipe Azevedo aka Nox P@sNox 5 | ## Project : qmake-extensions.pri 6 | ## FileName : qmake-extensions.pri 7 | ## Date : 2012-07-28T13:13:40 8 | ## License : LGPL3 9 | ## Comment : Creating using Monkey Studio RAD 10 | ## Home Page : https://github.com/pasnox/qmake-extensions 11 | ## 12 | ## This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 13 | ## WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 14 | ## 15 | ########################################################################################### 16 | 17 | Q_HOST_OS = $${QMAKE_HOST.os} 18 | Q_LOWER_HOST_OS = $$lower( $${Q_HOST_OS} ) 19 | 20 | win32 { 21 | !isEqual( Q_LOWER_HOST_OS, "windows" ) { 22 | # we are cross building for windows 23 | CONFIG *= cb_win32 24 | } 25 | } 26 | 27 | macx { 28 | !isEqual( Q_LOWER_HOST_OS, "darwin" ) { 29 | # we are cross building for mac os x 30 | CONFIG *= cb_mac 31 | } 32 | } 33 | 34 | # the build target os 35 | Q_TARGET = $${Q_HOST_OS} 36 | # the build target arch 37 | Q_ARCH = $${QT_ARCH} 38 | 39 | cb_win32 { 40 | Q_TARGET = Windows 41 | } 42 | 43 | cb_mac { 44 | Q_TARGET = Darwin 45 | } 46 | 47 | Q_TARGET_ARCH = "$${Q_TARGET}-$${Q_ARCH}" 48 | 49 | # Some useful variables that can't be easily added in variable values directly 50 | Q_NULL = 51 | Q_BACK_SLASH = "\\" 52 | Q_SLASH = "/" 53 | Q_QUOTE = "\"" 54 | Q_DOLLAR = "\\$" 55 | Q_OPENING_BRACE = "\\{" 56 | Q_CLOSING_BRACE = "\\}" 57 | 58 | # include functions 59 | isEmpty( translations_pass ) { 60 | include( $$PWD/functions.pri ) 61 | } else { 62 | include( $$PWD/fake-functions.pri ) 63 | } 64 | -------------------------------------------------------------------------------- /resources/qodeedit.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /share/schemas/kateschemarc: -------------------------------------------------------------------------------- 1 | [kate - Normal] 2 | Color Background=255,255,255 3 | Color Highlighted Bracket=237,249,255 4 | Color Highlighted Line=248,247,246 5 | Color Icon Bar=214,210,208 6 | Color Line Number=34,31,30 7 | Color MarkType1=0,0,255 8 | Color MarkType2=255,0,0 9 | Color MarkType3=255,255,0 10 | Color MarkType4=255,0,255 11 | Color MarkType5=160,160,164 12 | Color MarkType6=0,255,0 13 | Color MarkType7=255,0,0 14 | Color Selection=67,172,232 15 | Color Spelling Mistake Line=255,0,0 16 | Color Tab Marker=210,210,210 17 | Color Template Background=204,204,204 18 | Color Template Editable Placeholder=204,255,204 19 | Color Template Focused Editable Placeholder=102,255,102 20 | Color Template Not Editable Placeholder=255,204,204 21 | Color Word Wrap Marker=237,237,237 22 | Font=Monospace,9,-1,2,50,0,0,0,0,0 23 | -------------------------------------------------------------------------------- /share/syntax/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ########### install files ############### 2 | 3 | add_custom_target(GeneratePhpXmlFiles ALL DEPENDS 4 | ${CMAKE_CURRENT_BINARY_DIR}/css-php.xml 5 | ${CMAKE_CURRENT_BINARY_DIR}/html-php.xml 6 | ${CMAKE_CURRENT_BINARY_DIR}/javascript-php.xml ) 7 | 8 | 9 | macro(GENERATE_PHP_XML targetFile srcFile) 10 | add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${targetFile} 11 | COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/generate-php.pl < ${CMAKE_CURRENT_SOURCE_DIR}/${srcFile} > ${CMAKE_CURRENT_BINARY_DIR}/${targetFile} 12 | DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${srcFile} ) 13 | endmacro(GENERATE_PHP_XML) 14 | 15 | generate_php_xml(javascript-php.xml javascript.xml) 16 | generate_php_xml(css-php.xml css.xml) 17 | generate_php_xml(html-php.xml html.xml) 18 | 19 | file(GLOB HIGHLIGHTERS "${CMAKE_CURRENT_SOURCE_DIR}/*.xml") 20 | 21 | install( FILES language.dtd syntax.template ${HIGHLIGHTERS} 22 | ${CMAKE_CURRENT_BINARY_DIR}/html-php.xml ${CMAKE_CURRENT_BINARY_DIR}/css-php.xml ${CMAKE_CURRENT_BINARY_DIR}/javascript-php.xml 23 | DESTINATION ${DATA_INSTALL_DIR}/katepart/syntax) 24 | -------------------------------------------------------------------------------- /share/syntax/changelog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /share/syntax/checkdtd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | xmllint --noout --dtdvalid language.dtd $@ 3 | -------------------------------------------------------------------------------- /share/syntax/cmake-gen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/env bash 2 | # kate: tab-width 4; indent-mode normal; 3 | # Copyright 2008, 2009 Matthew Woehlke (mw_triad@users.sourceforge.net) 4 | 5 | export LC_ALL=C 6 | 7 | # need cmake 8 | CMAKE="$(type -P cmake)" 9 | [ -x "$CMAKE" ] || exit 1 10 | echo "found cmake... $CMAKE" 11 | 12 | t=.tmp_cmake$$ 13 | 14 | # Get cmake version 15 | CMAKE_VERSION="$("$CMAKE" --help | sed -n '1p')" 16 | 17 | count() { 18 | wc -l $t.$1 | awk '{print $1}' 19 | } 20 | 21 | # Extract before/after command list 22 | sed -n -e '/ $t.1 23 | sed -e '/<\/list\s*>/ba' -e 'd' -e ':a' -e 'n;ba' cmake.xml > $t._2 24 | sed -n -e '/ $t.2 25 | sed "1,$(wc -l < $t.2)d" $t._2 | sed -e '/<\/list\s*>/ba' -e 'd' -e ':a' -e 'n;ba' > $t._3 26 | sed -n -e '/ $t.3 27 | sed "1,$(wc -l < $t.3)d" $t._3 | sed -e '/<\/list\s*>/ba' -e 'd' -e ':a' -e 'n;ba' > $t.4 28 | 29 | cmake --help-command-list | sed '1d' | sort > $t.commands 30 | echo "$(count commands) commands" 31 | 32 | extract_args() { 33 | sed -e '/'"$1"'(/ba' \ 34 | -e 'd' \ 35 | -e ':a' \ 36 | -e '/)/{s/^.*(\(.*\)).*$/\1/p;d}' \ 37 | -e 'N;s/\n/ /;ba' | \ 38 | sed -e 's/[][]//g' -e 's/|\| \+/\n/g' | \ 39 | sed -n '/^[[:upper:][:digit:]_]\+$/p' >> $t.args 40 | } 41 | 42 | while read COMMAND ; do 43 | "$CMAKE" --help-command $COMMAND | extract_args $COMMAND 44 | done < $t.commands 45 | sort -u $t.args > $t.argsu 46 | echo "$(count args) arguments, $(count argsu) unique" 47 | cmake --help-property-list | sed -e '1d' -e '/[<>]/d' | sort -u > $t.props 48 | echo "$(count props) properties" 49 | 50 | # Generate new .xml 51 | { 52 | sed '//' $t.1 53 | echo " " 54 | sed 's!.*! & !' $t.commands 55 | cat $t.2 56 | echo " " 57 | sed 's!.*! & !' $t.argsu 58 | cat $t.3 59 | echo " " 60 | sed 's!.*! & !' $t.props 61 | cat $t.4 62 | } > cmake.xml 63 | 64 | rm -f $t.* 65 | echo "Remember to update the version!" 66 | -------------------------------------------------------------------------------- /share/syntax/desktop.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /share/syntax/find-trivial-regexpr.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pasnox/qodeedit/7d11f5aeed8eabd83a011e10535013238cc2a0aa/share/syntax/find-trivial-regexpr.sh -------------------------------------------------------------------------------- /share/syntax/generate-php.pl: -------------------------------------------------------------------------------- 1 | # This perl script read stdin and write on stdout. It shall be an XML language file. 2 | # 3 | # * If the name of the language is 'HTML', then it creates the language 'PHP (HTML)' 4 | # which shall be used for PHP hl. 5 | # 6 | # * If the name of the language is something else (say '*'), it creates the language '*/PHP'. 7 | # This new language is the same as the old one, but is able to detect PHP everywhere. 8 | # 9 | # This script will correctly set extensions & mimetype, and will replace 10 | # by 11 | # 12 | # Generated languages need a language named 'PHP/PHP', which shall take care of PHP hl itself 13 | # and which will be called every time something like 16 | # License: LGPL 17 | 18 | my $file = ""; 19 | 20 | while (<>) 21 | { 22 | $file .= $_; 23 | } 24 | 25 | $warning = "\n\n\n"; 26 | 27 | $file =~ s/(?=]+name="HTML"/) 30 | { 31 | $root = 1; 32 | } 33 | 34 | if ($root == 1) 35 | { 36 | $file =~ s/]+)name="[^"]*"/]+)section="[^"]*"/]+)extensions="[^"]*"/]+)mimetype="[^"]*"/]+)name="([^"]*)"/