├── AUTHORS ├── CHANGELOG ├── COPYING ├── Editra.pyw ├── FAQ ├── INSTALL ├── NEWS ├── PKG-INFO ├── README ├── THANKS ├── TODO ├── __init__.py ├── debian ├── changelog ├── compat ├── control ├── copyright ├── editra.1 ├── editra.desktop ├── editra.docs ├── editra.install ├── editra.manpages ├── editra.menu ├── patches │ ├── editra-0.7.20+dfsg.1-2.1-nmu.diff │ └── series ├── rules ├── source │ └── format └── watch ├── docs └── editra_style_sheets.txt ├── editra ├── ekeys └── VisualStudio.ekeys ├── include └── python2.5 │ └── darwin │ └── pyconfig.h ├── launcher.py ├── locale ├── be_BY │ └── LC_MESSAGES │ │ └── Editra.mo ├── bg_BG │ └── LC_MESSAGES │ │ └── Editra.mo ├── ca_ES │ └── LC_MESSAGES │ │ └── Editra.mo ├── ca_ES@valencia │ └── LC_MESSAGES │ │ └── Editra.mo ├── cs_CZ │ └── LC_MESSAGES │ │ └── Editra.mo ├── da_DK │ └── LC_MESSAGES │ │ └── Editra.mo ├── de_DE │ └── LC_MESSAGES │ │ └── Editra.mo ├── el_GR │ └── LC_MESSAGES │ │ └── Editra.mo ├── en_GB │ └── LC_MESSAGES │ │ └── Editra.mo ├── en_US │ └── LC_MESSAGES │ │ └── Editra.mo ├── eo │ └── LC_MESSAGES │ │ └── Editra.mo ├── es_ES │ └── LC_MESSAGES │ │ └── Editra.mo ├── et_EE │ └── LC_MESSAGES │ │ └── Editra.mo ├── eu_ES │ └── LC_MESSAGES │ │ └── Editra.mo ├── fa_IR │ └── LC_MESSAGES │ │ └── Editra.mo ├── fi_FI │ └── LC_MESSAGES │ │ └── Editra.mo ├── fr_FR │ └── LC_MESSAGES │ │ └── Editra.mo ├── gl_ES │ └── LC_MESSAGES │ │ └── Editra.mo ├── he_IL │ └── LC_MESSAGES │ │ └── Editra.mo ├── hr_HR │ └── LC_MESSAGES │ │ └── Editra.mo ├── hu_HU │ └── LC_MESSAGES │ │ └── Editra.mo ├── id_ID │ └── LC_MESSAGES │ │ └── Editra.mo ├── it_IT │ └── LC_MESSAGES │ │ └── Editra.mo ├── ja_JP │ └── LC_MESSAGES │ │ └── Editra.mo ├── ka_GE │ └── LC_MESSAGES │ │ └── Editra.mo ├── ko_KR │ └── LC_MESSAGES │ │ └── Editra.mo ├── lt_LT │ └── LC_MESSAGES │ │ └── Editra.mo ├── lv_LV │ └── LC_MESSAGES │ │ └── Editra.mo ├── ms_MY │ └── LC_MESSAGES │ │ └── Editra.mo ├── nb_NO │ └── LC_MESSAGES │ │ └── Editra.mo ├── nl_NL │ └── LC_MESSAGES │ │ └── Editra.mo ├── nn_NO │ └── LC_MESSAGES │ │ └── Editra.mo ├── oc │ └── LC_MESSAGES │ │ └── Editra.mo ├── pl_PL │ └── LC_MESSAGES │ │ └── Editra.mo ├── pt_BR │ └── LC_MESSAGES │ │ └── Editra.mo ├── pt_PT │ └── LC_MESSAGES │ │ └── Editra.mo ├── ro_RO │ └── LC_MESSAGES │ │ └── Editra.mo ├── ru_RU │ └── LC_MESSAGES │ │ └── Editra.mo ├── sk_SK │ └── LC_MESSAGES │ │ └── Editra.mo ├── sl_SI │ └── LC_MESSAGES │ │ └── Editra.mo ├── sr_RS │ └── LC_MESSAGES │ │ └── Editra.mo ├── sv_SE │ └── LC_MESSAGES │ │ └── Editra.mo ├── te │ └── LC_MESSAGES │ │ └── Editra.mo ├── th_TH │ └── LC_MESSAGES │ │ └── Editra.mo ├── tr_TR │ └── LC_MESSAGES │ │ └── Editra.mo ├── ug │ └── LC_MESSAGES │ │ └── Editra.mo ├── uk_UA │ └── LC_MESSAGES │ │ └── Editra.mo ├── zh_CN │ └── LC_MESSAGES │ │ └── Editra.mo └── zh_TW │ └── LC_MESSAGES │ └── Editra.mo ├── pixmaps ├── Editra.icns ├── editra.ico ├── editra.png ├── editra256.png ├── editra64.png ├── editra_doc.icns ├── editra_doc.ico ├── editra_doc.png ├── installer │ └── inst_bk.png ├── splashwarn.png └── theme │ ├── Default │ └── README │ └── Tango │ ├── AUTHORS │ ├── COPYING │ ├── menu │ ├── about.png │ ├── add.png │ ├── advanced.png │ ├── attribute.png │ ├── backward.png │ ├── bin_file.png │ ├── bmark_add.png │ ├── bmark_next.png │ ├── bmark_pre.png │ ├── cdrom.png │ ├── class.png │ ├── computer.png │ ├── copy.png │ ├── cut.png │ ├── delete.png │ ├── delete_all.png │ ├── doc_props.png │ ├── docs.png │ ├── down.png │ ├── element.png │ ├── file.png │ ├── find.png │ ├── findr.png │ ├── floppy.png │ ├── folder.png │ ├── font.png │ ├── forward.png │ ├── function.png │ ├── harddisk.png │ ├── html_gen.png │ ├── indent.png │ ├── log.png │ ├── mail.png │ ├── method.png │ ├── new.png │ ├── newfolder.png │ ├── newwin.png │ ├── open.png │ ├── outdent.png │ ├── package.png │ ├── paste.png │ ├── plugin.png │ ├── pref.png │ ├── print.png │ ├── printpre.png │ ├── property.png │ ├── pyshell.png │ ├── quit.png │ ├── readonly.png │ ├── redo.png │ ├── refresh.png │ ├── remove.png │ ├── rtf_gen.png │ ├── save.png │ ├── saveas.png │ ├── selectall.png │ ├── stop.png │ ├── style_edit.png │ ├── tex_gen.png │ ├── theme.png │ ├── undo.png │ ├── up.png │ ├── usb.png │ ├── variable.png │ └── web.png │ ├── mime │ ├── boo.png │ ├── css.png │ ├── html.png │ ├── java.png │ ├── php.png │ ├── python.png │ ├── ruby.png │ ├── shell.png │ └── text.png │ ├── other │ └── doc_props.png │ └── toolbar │ ├── advanced.png │ ├── backward.png │ ├── copy.png │ ├── cut.png │ ├── doc_props.png │ ├── find.png │ ├── findr.png │ ├── forward.png │ ├── new.png │ ├── open.png │ ├── package.png │ ├── paste.png │ ├── pref.png │ ├── print.png │ ├── redo.png │ ├── save.png │ ├── theme.png │ ├── undo.png │ └── web.png ├── plugins ├── CodeBrowser-1.5-py2.6.egg ├── CodeBrowser-1.5-py2.7.egg ├── FileBrowser-2.2-py2.6.egg ├── FileBrowser-2.2-py2.7.egg ├── Launch-1.13-py2.6.egg ├── Launch-1.13-py2.7.egg ├── PyShell-0.8-py2.6.egg └── PyShell-0.8-py2.7.egg ├── scripts ├── clean_dir.sh ├── doxypy.py ├── editramac.sh ├── gen_plugin_index.py ├── gen_stc_doc.py └── i18n │ ├── Editra_be_BY.po │ ├── Editra_bg_BG.po │ ├── Editra_ca_ES.po │ ├── Editra_ca_ES@valencia.po │ ├── Editra_cs_CZ.po │ ├── Editra_da_DK.po │ ├── Editra_de_DE.po │ ├── Editra_el_GR.po │ ├── Editra_en_GB.po │ ├── Editra_en_US.po │ ├── Editra_eo.po │ ├── Editra_es_ES.po │ ├── Editra_et_EE.po │ ├── Editra_eu_ES.po │ ├── Editra_fa_IR.po │ ├── Editra_fi_FI.po │ ├── Editra_fr_FR.po │ ├── Editra_gl_ES.po │ ├── Editra_he_IL.po │ ├── Editra_hr_HR.po │ ├── Editra_hu_HU.po │ ├── Editra_id_ID.po │ ├── Editra_it_IT.po │ ├── Editra_ja_JP.po │ ├── Editra_ka_GE.po │ ├── Editra_ko_KR.po │ ├── Editra_lt_LT.po │ ├── Editra_lv_LV.po │ ├── Editra_ms_MY.po │ ├── Editra_nb_NO.po │ ├── Editra_nl_NL.po │ ├── Editra_nn_NO.po │ ├── Editra_oc.po │ ├── Editra_pl_PL.po │ ├── Editra_pt_BR.po │ ├── Editra_pt_PT.po │ ├── Editra_ro_RO.po │ ├── Editra_ru_RU.po │ ├── Editra_sk_SK.po │ ├── Editra_sl_SI.po │ ├── Editra_sr_RS.po │ ├── Editra_sv_SE.po │ ├── Editra_te.po │ ├── Editra_th_TH.po │ ├── Editra_tr_TR.po │ ├── Editra_ug.po │ ├── Editra_uk_UA.po │ ├── Editra_zh_CN.po │ ├── Editra_zh_TW.po │ ├── gen_lang.sh │ ├── getlpfiles.py │ ├── mkflist.py │ └── mki18n.py ├── setup.cfg ├── setup.py ├── src ├── Editra.py ├── __init__.py ├── autocomp │ ├── __init__.py │ ├── autocomp.py │ ├── completer.py │ ├── csscomp.py │ ├── htmlcomp.py │ ├── pycomp.py │ └── simplecomp.py ├── dev_tool.py ├── doctools.py ├── ebmlib │ ├── __init__.py │ ├── _dirmon.py │ ├── _efactory.py │ ├── _threads.py │ ├── _trash.py │ ├── backupmgr.py │ ├── calllock.py │ ├── clipboard.py │ ├── cmenumgr.py │ ├── e_weblib.py │ ├── efilehist.py │ ├── fchecker.py │ ├── fileimpl.py │ ├── fileutil.py │ ├── histcache.py │ ├── logfile.py │ ├── miscutil.py │ ├── osutil.py │ ├── searcheng.py │ └── txtutil.py ├── eclib │ ├── __init__.py │ ├── _filetree.py │ ├── _infobar.py │ ├── auinavi.py │ ├── choicedlg.py │ ├── colorsetter.py │ ├── ctrlbox.py │ ├── ecbasewin.py │ ├── eclutil.py │ ├── ecpickers.py │ ├── elistctrl.py │ ├── elistmix.py │ ├── encdlg.py │ ├── errdlg.py │ ├── filemgrdlg.py │ ├── filterdlg.py │ ├── finddlg.py │ ├── infodlg.py │ ├── outbuff.py │ ├── panelbox.py │ ├── platebtn.py │ ├── pstatbar.py │ ├── segmentbk.py │ └── txtentry.py ├── ed_art.py ├── ed_basestc.py ├── ed_basewin.py ├── ed_book.py ├── ed_bookmark.py ├── ed_cmdbar.py ├── ed_crypt.py ├── ed_editv.py ├── ed_event.py ├── ed_fmgr.py ├── ed_glob.py ├── ed_i18n.py ├── ed_ipc.py ├── ed_keyh.py ├── ed_log.py ├── ed_main.py ├── ed_marker.py ├── ed_mdlg.py ├── ed_menu.py ├── ed_mpane.py ├── ed_msg.py ├── ed_pages.py ├── ed_print.py ├── ed_search.py ├── ed_session.py ├── ed_shelf.py ├── ed_statbar.py ├── ed_stc.py ├── ed_style.py ├── ed_tab.py ├── ed_theme.py ├── ed_thread.py ├── ed_toolbar.py ├── ed_txt.py ├── ed_vim.py ├── ed_xml.py ├── edimage.py ├── extern │ ├── README │ ├── __init__.py │ ├── aui │ │ ├── __init__.py │ │ ├── aui_constants.py │ │ ├── aui_switcherdialog.py │ │ ├── aui_utilities.py │ │ ├── auibar.py │ │ ├── auibook.py │ │ ├── dockart.py │ │ ├── framemanager.py │ │ ├── tabart.py │ │ └── tabmdi.py │ ├── decorlib.py │ ├── dexml │ │ ├── __init__.py │ │ ├── _util.py │ │ └── fields.py │ ├── embeddedimage.py │ ├── events.py │ ├── ez_setup.py │ ├── flatnotebook.py │ ├── pkg_resources.py │ ├── pubsub.py │ ├── pygments │ │ ├── LICENSE │ │ ├── __init__.py │ │ ├── cmdline.py │ │ ├── console.py │ │ ├── filter.py │ │ ├── filters │ │ │ └── __init__.py │ │ ├── formatter.py │ │ ├── formatters │ │ │ ├── __init__.py │ │ │ ├── _mapping.py │ │ │ ├── bbcode.py │ │ │ ├── html.py │ │ │ ├── img.py │ │ │ ├── latex.py │ │ │ ├── other.py │ │ │ ├── rtf.py │ │ │ ├── svg.py │ │ │ ├── terminal.py │ │ │ └── terminal256.py │ │ ├── lexer.py │ │ ├── lexers │ │ │ ├── __init__.py │ │ │ ├── _asybuiltins.py │ │ │ ├── _clbuiltins.py │ │ │ ├── _luabuiltins.py │ │ │ ├── _mapping.py │ │ │ ├── _phpbuiltins.py │ │ │ ├── _vimbuiltins.py │ │ │ ├── agile.py │ │ │ ├── asm.py │ │ │ ├── compiled.py │ │ │ ├── dotnet.py │ │ │ ├── functional.py │ │ │ ├── hdl.py │ │ │ ├── math.py │ │ │ ├── other.py │ │ │ ├── parsers.py │ │ │ ├── special.py │ │ │ ├── templates.py │ │ │ ├── text.py │ │ │ └── web.py │ │ ├── plugin.py │ │ ├── scanner.py │ │ ├── style.py │ │ ├── styles │ │ │ ├── __init__.py │ │ │ ├── autumn.py │ │ │ ├── borland.py │ │ │ ├── bw.py │ │ │ ├── colorful.py │ │ │ ├── default.py │ │ │ ├── emacs.py │ │ │ ├── friendly.py │ │ │ ├── fruity.py │ │ │ ├── manni.py │ │ │ ├── monokai.py │ │ │ ├── murphy.py │ │ │ ├── native.py │ │ │ ├── pastie.py │ │ │ ├── perldoc.py │ │ │ ├── tango.py │ │ │ ├── trac.py │ │ │ ├── vim.py │ │ │ └── vs.py │ │ ├── token.py │ │ ├── unistring.py │ │ └── util.py │ ├── stcprint.py │ ├── stcspellcheck.py │ └── vertedit.py ├── generator.py ├── iface.py ├── info.py ├── perspective.py ├── plugdlg.py ├── plugin.py ├── prefdlg.py ├── profiler.py ├── style_editor.py ├── syntax │ ├── README │ ├── __init__.py │ ├── _actionscript.py │ ├── _ada.py │ ├── _apache.py │ ├── _asm.py │ ├── _asm68k.py │ ├── _batch.py │ ├── _boo.py │ ├── _caml.py │ ├── _cobra.py │ ├── _cpp.py │ ├── _css.py │ ├── _d.py │ ├── _diff.py │ ├── _django.py │ ├── _dot.py │ ├── _editra_ss.py │ ├── _edje.py │ ├── _eiffel.py │ ├── _erlang.py │ ├── _ferite.py │ ├── _flagship.py │ ├── _forth.py │ ├── _fortran.py │ ├── _glsl.py │ ├── _groovy.py │ ├── _gui4cli.py │ ├── _haskell.py │ ├── _haxe.py │ ├── _html.py │ ├── _inno.py │ ├── _issuelist.py │ ├── _java.py │ ├── _javascript.py │ ├── _kix.py │ ├── _latex.py │ ├── _lisp.py │ ├── _lout.py │ ├── _lua.py │ ├── _make.py │ ├── _mako.py │ ├── _masm.py │ ├── _matlab.py │ ├── _mssql.py │ ├── _nasm.py │ ├── _nonmem.py │ ├── _nsis.py │ ├── _ooc.py │ ├── _pascal.py │ ├── _perl.py │ ├── _php.py │ ├── _pike.py │ ├── _postscript.py │ ├── _progress.py │ ├── _props.py │ ├── _python.py │ ├── _ruby.py │ ├── _s.py │ ├── _sh.py │ ├── _smalltalk.py │ ├── _sql.py │ ├── _squirrel.py │ ├── _stata.py │ ├── _tcl.py │ ├── _vbscript.py │ ├── _verilog.py │ ├── _vhdl.py │ ├── _visualbasic.py │ ├── _xml.py │ ├── _xtext.py │ ├── _yaml.py │ ├── syndata.py │ ├── synextreg.py │ ├── synglob.py │ ├── syntax.py │ └── synxml.py ├── updater.py ├── util.py └── wxcompat.py ├── styles ├── BlackBoard.ess ├── Blue.ess ├── BlueMonday.ess ├── Cream.ess ├── Default.ess ├── Dessert.ess ├── Guepardo.ess ├── Midnight.ess └── Mocha.ess ├── templates ├── autocomp_mod ├── ctrl_demo ├── plugin_setup ├── py ├── syntax_mod └── unittest └── tests ├── controls ├── AdvFindReplaceDialogDemo.py ├── AuiNavigatorDemo.py ├── ChoiceDialogDemo.py ├── ColorSetterDemo.py ├── ControlBoxDemo.py ├── EncodingDialogDemo.py ├── ErrorDialogDemo.py ├── FileTreeDemo.py ├── FilterDialogDemo.py ├── IconFile.py ├── InfoDialogDemo.py ├── OutputBufferDemo.py ├── PanelBoxDemo.py ├── PlateButtonDemo.py ├── ProgressStatusBarDemo.py ├── SegmentBookDemo.py ├── __init__.py └── demo.py ├── syntax ├── .DS_Store ├── 68k_assembly.68k ├── Xtext.xtext ├── actionscript.as ├── ada.adb ├── apache_conf.conf ├── bash_shell_script.sh ├── boo.boo ├── c-shell_script.csh ├── c.c ├── caml.ml ├── cascading_style_sheet.css ├── cilk.cilk ├── cobra.cobra ├── coldfusion.cfm ├── cpp.cpp ├── csharp.cs ├── d.d ├── diff_file.diff ├── django.django ├── dos_batch_script.bat ├── dot.dot ├── dsp56k_assembly.56k ├── editra_style_sheet.ess ├── edje.edc ├── eiffel.e ├── erlang.erl ├── ferite.fe ├── flagship.prg ├── forth.4th ├── fortran_77.for ├── fortran_95.f95 ├── glsl.glsl ├── groovy.groovy ├── gui4cli.gui ├── haskell.hs ├── haxe.hx ├── html.html ├── inno_setup_script.iss ├── issuelist.isl ├── java.java ├── javascript.js ├── kix.kix ├── korn_shell_script.ksh ├── latex.tex ├── lisp.lisp ├── lout.lt ├── lua.lua ├── makefile.mak ├── mako.mako ├── masm.masm ├── matlab.matlab ├── microsoft_sql.sql ├── netwide_assembler.nasm ├── newlisp.lsp ├── nonmem_control_stream.ctl ├── nullsoft_installer_script.nsi ├── objective_c.mm ├── octave.oct ├── ooc.ooc ├── pascal.pas ├── perl.pl ├── php.php ├── pike.pike ├── pl_sql.plsql ├── plain_text.txt ├── postscript.ps ├── progress_4gl.4gl ├── properties.ini ├── python.python ├── r.r ├── ruby.rb ├── s.s ├── scheme.scm ├── smalltalk.st ├── sql.sql ├── squirrel.nut ├── stata.do ├── svg.svg ├── system_verilog.sv ├── tcl_tk.tcl ├── unicode_text.txt ├── vala.vala ├── vbscript.vbs ├── verilog.v ├── vhdl.vhdl ├── visual_basic.vb ├── xml.xml └── yaml.yaml └── unittests ├── common.py ├── data ├── embedded_nulls.txt ├── image_test.png ├── non_print_char.txt ├── test_read_utf16.txt ├── test_read_utf32_bom.txt ├── test_read_utf8.txt └── test_read_utf8_bom.txt ├── runUnitTests.py ├── testArtProvider.py ├── testContextMenuManager.py ├── testCycleCache.py ├── testDocMgr.py ├── testEBMClipboard.py ├── testEBMLibMisc.py ├── testECLUtil.py ├── testEdBaseStc.py ├── testEdCrypt.py ├── testEdFile.py ├── testEdIpc.py ├── testEdSearchEngine.py ├── testEdSessionMgr.py ├── testExtensionRegister.py ├── testFactory.py ├── testFileBackupMgr.py ├── testFileImpl.py ├── testFileTypeChecker.py ├── testFileUtil.py ├── testHistoryCache.py ├── testLogMsg.py ├── testProfile.py ├── testSearchEngine.py ├── testStyleItem.py ├── testStyleMgr.py ├── testSynGlob.py ├── testSynXml.py ├── testSyntaxDataBase.py ├── testSyntaxExtReg.py ├── testSyntaxFunctions.py ├── testSyntaxMgr.py ├── testTheme.py ├── testThreadpool.py ├── testTxtUtil.py └── testUtil.py /AUTHORS: -------------------------------------------------------------------------------- 1 | Editra 2 | Developer's Text Editor 3 | 4 | Author: 5 | Cody Precord 6 | 7 | Translations: 8 | Angelo (Italian) 9 | Anri Ito (Japanese) 10 | Cody Precord (English/Japanese) 11 | DR0ID (German) 12 | gasolin (Traditional Chinese) 13 | Gerard Petersen (Dutch) 14 | heccj (Simplified Chinese) 15 | Igor Chomko (Ukrainian) 16 | Janis.sl (Latvian) 17 | JoNNeMaNN (Norwegian Nynorsk) 18 | mustafa (Turkish) 19 | Raul Gonzalez Duque (Spanish) 20 | Sergei Zivukov (Russian) 21 | shaohao (Simplified Chinese) 22 | slavOnic (Russian) 23 | Peter Magnusson (Swedish) 24 | Tomas Fryda (Czech) 25 | Vladimir Lazic (Serbian) 26 | And many more, see the launchpad site for a full list of contributors! 27 | 28 | Contributors: 29 | DR0ID (Comment Browser) 30 | Kevin Smith (Projects Plugin) 31 | Laurent Dufrenchou (IPyShell) 32 | Kurt Schelin (App Icon Design) 33 | shaohao (Statusbar improvement patch) 34 | Giuseppe "Cowo" Corbelli (various patches) 35 | quode (OCaml support for Launch plugin) 36 | -------------------------------------------------------------------------------- /FAQ: -------------------------------------------------------------------------------- 1 | Frequently Asked Questions: 2 | 3 | Most common questions are answered in the project documentation please see 4 | http://editra.org/?page=docs for a listing of how to's and other tips and tricks 5 | about how to use Editra. 6 | 7 | -------------------------------------------------------------------------------- /NEWS: -------------------------------------------------------------------------------- 1 | Editra Project News: 2 | 3 | This file contains general project news and announcements. News related to 4 | releases and current versions are contained in the CHANGELOG. 5 | 6 | @see CHANGELOG or docs CHANGELOG_* for latest release information 7 | 8 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | Project Name: Editra 2 | Author: Cody Precord 3 | Email: cprecord@editra.org 4 | Licence: wxWindows (see COPYING) 5 | 6 | #----------------------------------------------------------------------------# 7 | 8 | Info: 9 | 10 | #----------------------------------------------------------------------------# 11 | 12 | Compatibility: 13 | It has been tested on the following systems, but it should run on any system 14 | that supports python and wxpython. 15 | 16 | Linux: 17 | Tested on Gentoo, Suse, and Ubuntu 18 | Receives testing when ever my vm doesn't eat my install 19 | 20 | Macintosh OS X: 21 | Primary development is on OS X so it receives the most direct testing. 22 | 23 | Windows XP / Windows 7 24 | Receives regression testing for before each release 25 | 26 | Dependencies: 27 | If you wish to run the source code you will need to have the following 28 | libraries installed. 29 | 30 | Required for all systems: 31 | Python 2.6 and higher ( http://python.org ) 32 | wxPython 2.8.6 ( http://wxpython.org ) (Unicode version) 33 | setuptools 0.6 or higher (http://peak.telecommunity.com/DevCenter/setuptools) 34 | #----------------------------------------------------------------------------# 35 | 36 | INSTALLATION: 37 | 38 | see INSTALL 39 | 40 | #----------------------------------------------------------------------------# 41 | -------------------------------------------------------------------------------- /THANKS: -------------------------------------------------------------------------------- 1 | Editra is made possible by the following "free" technologies and 2 | the communities that develop them. 3 | 4 | Python Programming Language (http://www.python.org) 5 | wxPython Class Library (http://www.wxpython.org) 6 | setuptools (http://peak.telecommunity.com/DevCenter/setuptools) 7 | py2app (http://undefined.org/python/#py2app) 8 | py2exe (http://py2exe.org) 9 | pygments (http://pygments.org) 10 | 11 | The primary icon theme 'Tango' is derived from the Tango set of icons 12 | http://tango.freedesktop.org 13 | -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- 1 | This file serves as a scratch place for some ideas about things that are wanted 2 | in the editor or that would be nice to have. A more formal listing is available 3 | on the projects issue tracker page http://code.google.com/p/editra/issues/list 4 | 5 | This is a partial list of planned features that are yet to be implemented. 6 | 7 | Planned Features: 8 | 9 | Core: 10 | - Full command mode to remove need for mouse interaction (initial basic version to be available after 0.1.78) 11 | - Builtin help/documentation browser 12 | - Extensions to current syntax stylesheet language to allow for per language style definitions 13 | - Runtime loading/unloading of plugins (works for some plugins) 14 | 15 | Plugin: 16 | - Terminal, builtin system shell control (partially implemented osx/gtk) 17 | 18 | -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: __init__.py # 3 | # Purpose: Put the src package in the Editra packages namespace # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2007 Cody Precord # 6 | # Licence: wxWindows Licence # 7 | ############################################################################### 8 | 9 | """Main package initializer""" 10 | 11 | __author__ = "Cody Precord " 12 | __svnid__ = "$Id: __init__.py 49807 2007-11-10 07:08:33Z CJP $" 13 | __revision__ = "$Revision: 49807 $" 14 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: editra 2 | Section: editors 3 | Priority: extra 4 | Maintainer: Alejandro Garrido Mota 5 | Build-Depends: debhelper (>= 9), 6 | python-all, 7 | python (>= 2.6), 8 | python-setuptools, 9 | python-wxgtk3.0 10 | Standards-Version: 3.9.5 11 | X-Python-Version: >= 2.6 12 | Homepage: http://editra.org 13 | Vcs-Git: git://github.com/mogaal/editra 14 | Vcs-Browser: https://github.com/mogaal/editra 15 | 16 | Package: editra 17 | Architecture: all 18 | Depends: ${misc:Depends}, 19 | python, 20 | python-wxgtk3.0, 21 | Description: simple multi-platform text editor 22 | Editra is a multi-platform text editor with an implementation that 23 | focuses on creating an easy to use interface and features that aid 24 | in code development. Currently it supports syntax highlighting and 25 | variety of other useful features for over 60 programming languages. 26 | -------------------------------------------------------------------------------- /debian/editra.1: -------------------------------------------------------------------------------- 1 | .\" Hey, EMACS: -*- nroff -*- 2 | .\" First parameter, NAME, should be all caps 3 | .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection 4 | .\" other parameters are allowed: see man(7), man(1) 5 | .TH EDITRA 1 "May 3, 2009" 6 | .\" Please adjust this date whenever revising the manpage. 7 | .\" 8 | .\" Some roff macros, for reference: 9 | .\" .nh disable hyphenation 10 | .\" .hy enable hyphenation 11 | .\" .ad l left justify 12 | .\" .ad b justify to both left and right margins 13 | .\" .nf disable filling 14 | .\" .fi enable filling 15 | .\" .br insert line break 16 | .\" .sp insert n+1 empty lines 17 | .\" for manpage-specific macros, see man(7) 18 | .SH NAME 19 | editra \- Simple multi-platform text editor 20 | .SH SYNOPSIS 21 | .B Editra 22 | .RI [OPTIONS] \ \ [files ... ] 23 | .br 24 | .SH DESCRIPTION 25 | \fBeditra\fP is a multi-platform text editor with an implementation that focuses on creating an easy to use interface and features that aid in code development. Currently it supports syntax highlighting and variety of other useful features for over 60 programming languages. 26 | . 27 | .SH OPTIONS 28 | .TP 29 | .B \-h, \-\-help 30 | Show summary of options. 31 | .TP 32 | .B \-v, \-\-version 33 | Show version of program. 34 | .TP 35 | .B \-c, \-\-confdir 36 | Set custom configuration directory at runtime 37 | .TP 38 | .B \-d, \-\-debug 39 | Turn on console debugging 40 | .TP 41 | .B \-\-auth 42 | Print the ipc server info 43 | .TP 44 | .B \-p, \-\-profileOut 45 | Turn on console debugging 46 | .SH SEE ALSO 47 | .BR baz (1). 48 | .br 49 | .SH AUTHOR 50 | editra was written by Cody Precord . 51 | .PP 52 | This manual page was written by Alejandro Garrido Mota , 53 | for the Debian project (and may be used by others). 54 | -------------------------------------------------------------------------------- /debian/editra.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Version=0.7.20 4 | Exec=editra 5 | Name=editra 6 | GenericName=editra 7 | Comment=simple multi-platform text editor 8 | Icon=pyexiftoolgui.png 9 | Terminal=false 10 | StartupNotify=true 11 | Keywords=editor;python;ide 12 | -------------------------------------------------------------------------------- /debian/editra.docs: -------------------------------------------------------------------------------- 1 | FAQ 2 | NEWS 3 | README 4 | AUTHORS 5 | -------------------------------------------------------------------------------- /debian/editra.install: -------------------------------------------------------------------------------- 1 | debian/editra.desktop /usr/share/applications/ 2 | -------------------------------------------------------------------------------- /debian/editra.manpages: -------------------------------------------------------------------------------- 1 | debian/editra.1 2 | -------------------------------------------------------------------------------- /debian/editra.menu: -------------------------------------------------------------------------------- 1 | ?package(editra):needs="X11" section="Applications/Editors" \ 2 | title="editra" command="/usr/bin/editra" 3 | -------------------------------------------------------------------------------- /debian/patches/series: -------------------------------------------------------------------------------- 1 | editra-0.7.20+dfsg.1-2.1-nmu.diff 2 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | PACKAGE = $(shell dh_listpackages) 3 | TMP = $(CURDIR)/debian/$(PACKAGE) 4 | 5 | %: 6 | dh $@ --with python2 7 | 8 | override_dh_fixperms: 9 | dh_fixperms 10 | rm -rf $(TMP)/usr/share/pyshared/Editra/COPYING \ 11 | $(TMP)/usr/share/pyshared/Editra/pixmaps/theme/Tango/COPYING \ 12 | $(TMP)/usr/lib/python2.7/dist-packages/Editra/COPYING \ 13 | $(TMP)/usr/lib/python2.7/dist-packages/Editra/pixmaps/theme/Tango/COPYING \ 14 | $(TMP)/usr/lib/python2.7/dist-packages/Editra/plugins \ 15 | $(TMP)/usr/share/pyshared/Editra/plugins 16 | find . -name '*\.egg' -delete 17 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /debian/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | opts=dversionmangle=s/\.dfsg// \ 3 | http://editra.org/uploads/src/Editra-(.*)\.tar\.gz 4 | -------------------------------------------------------------------------------- /ekeys/VisualStudio.ekeys: -------------------------------------------------------------------------------- 1 | ID_ADD_BM=Ctrl+F2 2 | ID_BACKWARD=Shift+F2 3 | ID_BIN_FILE=Ctrl+E 4 | ID_CLOSE=Ctrl+F4 5 | ID_CLOSE_WINDOW=Ctrl+Shift+W 6 | ID_COLUMN_MODE=Alt+C 7 | ID_COPY=Ctrl+C 8 | ID_COPY_LINE=Ctrl+Y 9 | ID_CUT=Ctrl+X 10 | ID_CUT_LINE=Ctrl+L 11 | ID_DELETE_LINE=Ctrl+Shift+L 12 | ID_DUP_LINE=Ctrl+Shift+C 13 | ID_EXIT=Ctrl+Q 14 | ID_FIND=Ctrl+Shift+F 15 | ID_FIND_NEXT=F3 16 | ID_FIND_PREVIOUS=Shift+F3 17 | ID_FIND_REPLACE=Ctrl+H 18 | ID_FIND_SELECTED=Ctrl+F3 19 | ID_FORWARD=F2 20 | ID_GOTO_LINE=Ctrl+G 21 | ID_GOTO_MBRACE=Ctrl+Shift+B 22 | ID_JOIN_LINES=Ctrl+J 23 | ID_NEW=Ctrl+N 24 | ID_NEW_WINDOW=Ctrl+Shift+N 25 | ID_OPEN=Ctrl+O 26 | ID_PASTE=Ctrl+V 27 | ID_PRINT=Ctrl+P 28 | ID_PRINT_SU=Ctrl+Shift+P 29 | ID_QUICK_FIND=Ctrl+F 30 | ID_REDO=Ctrl+Y 31 | ID_RUN_LAUNCH=F5 32 | ID_SAVE=Ctrl+S 33 | ID_SAVEAS=Ctrl+Shift+S 34 | ID_SELECTALL=Ctrl+A 35 | ID_SHOW_SHELF=Ctrl+Alt+S 36 | ID_SHOW_WS=Ctrl+Shift+8 37 | ID_TO_LOWER=Ctrl+U 38 | ID_TO_UPPER=Ctrl+Shift+U 39 | ID_TRANSPOSE=Ctrl+T 40 | ID_UNDO=Ctrl+Z 41 | ID_UNINDENT=Shift+Tab 42 | ID_USE_SOFTTABS=Ctrl+Shift+I 43 | ID_ZOOM_NORMAL=Ctrl+0 44 | ID_ZOOM_OUT=Ctrl+- 45 | -------------------------------------------------------------------------------- /launcher.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # This module provides an importable module that can do the same 4 | # things as the Editra script, namely, set up the sys.path and 5 | # sys.modules for Editra and then start Editra running. This is done 6 | # by using execfile() to execute the code in the Editra script as if 7 | # it was in this module, and then the importer of this module can call 8 | # the main() function defined there. 9 | 10 | import os 11 | launcher = os.path.join(os.path.dirname(__file__), 'Editra') 12 | execfile(launcher) 13 | 14 | -------------------------------------------------------------------------------- /locale/be_BY/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/be_BY/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/bg_BG/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/bg_BG/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/ca_ES/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/ca_ES/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/ca_ES@valencia/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/ca_ES@valencia/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/cs_CZ/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/cs_CZ/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/da_DK/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/da_DK/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/de_DE/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/de_DE/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/el_GR/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/el_GR/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/en_GB/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/en_GB/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/en_US/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/en_US/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/eo/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/eo/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/es_ES/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/es_ES/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/et_EE/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/et_EE/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/eu_ES/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/eu_ES/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/fa_IR/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/fa_IR/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/fi_FI/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/fi_FI/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/fr_FR/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/fr_FR/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/gl_ES/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/gl_ES/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/he_IL/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/he_IL/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/hr_HR/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/hr_HR/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/hu_HU/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/hu_HU/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/id_ID/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/id_ID/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/it_IT/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/it_IT/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/ja_JP/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/ja_JP/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/ka_GE/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/ka_GE/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/ko_KR/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/ko_KR/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/lt_LT/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/lt_LT/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/lv_LV/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/lv_LV/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/ms_MY/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/ms_MY/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/nb_NO/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/nb_NO/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/nl_NL/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/nl_NL/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/nn_NO/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/nn_NO/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/oc/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/oc/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/pl_PL/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/pl_PL/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/pt_BR/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/pt_BR/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/pt_PT/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/pt_PT/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/ro_RO/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/ro_RO/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/ru_RU/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/ru_RU/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/sk_SK/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/sk_SK/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/sl_SI/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/sl_SI/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/sr_RS/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/sr_RS/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/sv_SE/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/sv_SE/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/te/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/te/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/th_TH/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/th_TH/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/tr_TR/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/tr_TR/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/ug/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/ug/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/uk_UA/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/uk_UA/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/zh_CN/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/zh_CN/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /locale/zh_TW/LC_MESSAGES/Editra.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/locale/zh_TW/LC_MESSAGES/Editra.mo -------------------------------------------------------------------------------- /pixmaps/Editra.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/Editra.icns -------------------------------------------------------------------------------- /pixmaps/editra.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/editra.ico -------------------------------------------------------------------------------- /pixmaps/editra.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/editra.png -------------------------------------------------------------------------------- /pixmaps/editra256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/editra256.png -------------------------------------------------------------------------------- /pixmaps/editra64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/editra64.png -------------------------------------------------------------------------------- /pixmaps/editra_doc.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/editra_doc.icns -------------------------------------------------------------------------------- /pixmaps/editra_doc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/editra_doc.ico -------------------------------------------------------------------------------- /pixmaps/editra_doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/editra_doc.png -------------------------------------------------------------------------------- /pixmaps/installer/inst_bk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/installer/inst_bk.png -------------------------------------------------------------------------------- /pixmaps/splashwarn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/splashwarn.png -------------------------------------------------------------------------------- /pixmaps/theme/Default/README: -------------------------------------------------------------------------------- 1 | The Default theme is provided by the host operating system this directory is 2 | just here to provide uniformity in organizing the themes. 3 | -------------------------------------------------------------------------------- /pixmaps/theme/Tango/AUTHORS: -------------------------------------------------------------------------------- 1 | Ulisse Perusin 2 | Steven Garrity 3 | Lapo Calamandrei 4 | Ryan Collier 5 | Rodney Dawes 6 | Andreas Nilsson 7 | Tuomas Kuosmanen 8 | Garrett LeSage 9 | Jakub Steiner 10 | -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/about.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/add.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/advanced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/advanced.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/attribute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/attribute.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/backward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/backward.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/bin_file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/bin_file.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/bmark_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/bmark_add.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/bmark_next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/bmark_next.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/bmark_pre.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/bmark_pre.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/cdrom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/cdrom.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/class.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/class.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/computer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/computer.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/copy.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/cut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/cut.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/delete.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/delete_all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/delete_all.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/doc_props.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/doc_props.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/docs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/docs.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/down.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/element.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/element.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/file.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/find.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/findr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/findr.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/floppy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/floppy.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/folder.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/font.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/font.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/forward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/forward.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/function.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/function.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/harddisk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/harddisk.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/html_gen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/html_gen.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/indent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/indent.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/log.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/mail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/mail.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/method.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/method.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/new.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/newfolder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/newfolder.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/newwin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/newwin.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/open.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/outdent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/outdent.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/package.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/package.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/paste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/paste.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/plugin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/plugin.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/pref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/pref.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/print.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/printpre.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/printpre.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/property.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/property.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/pyshell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/pyshell.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/quit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/quit.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/readonly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/readonly.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/redo.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/refresh.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/remove.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/rtf_gen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/rtf_gen.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/save.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/saveas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/saveas.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/selectall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/selectall.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/stop.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/style_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/style_edit.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/tex_gen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/tex_gen.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/theme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/theme.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/undo.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/up.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/usb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/usb.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/variable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/variable.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/menu/web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/menu/web.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/mime/boo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/mime/boo.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/mime/css.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/mime/css.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/mime/html.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/mime/html.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/mime/java.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/mime/java.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/mime/php.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/mime/php.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/mime/python.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/mime/python.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/mime/ruby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/mime/ruby.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/mime/shell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/mime/shell.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/mime/text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/mime/text.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/other/doc_props.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/other/doc_props.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/advanced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/advanced.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/backward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/backward.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/copy.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/cut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/cut.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/doc_props.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/doc_props.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/find.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/findr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/findr.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/forward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/forward.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/new.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/open.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/package.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/package.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/paste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/paste.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/pref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/pref.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/print.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/redo.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/save.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/theme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/theme.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/undo.png -------------------------------------------------------------------------------- /pixmaps/theme/Tango/toolbar/web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/pixmaps/theme/Tango/toolbar/web.png -------------------------------------------------------------------------------- /plugins/CodeBrowser-1.5-py2.6.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/plugins/CodeBrowser-1.5-py2.6.egg -------------------------------------------------------------------------------- /plugins/CodeBrowser-1.5-py2.7.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/plugins/CodeBrowser-1.5-py2.7.egg -------------------------------------------------------------------------------- /plugins/FileBrowser-2.2-py2.6.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/plugins/FileBrowser-2.2-py2.6.egg -------------------------------------------------------------------------------- /plugins/FileBrowser-2.2-py2.7.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/plugins/FileBrowser-2.2-py2.7.egg -------------------------------------------------------------------------------- /plugins/Launch-1.13-py2.6.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/plugins/Launch-1.13-py2.6.egg -------------------------------------------------------------------------------- /plugins/Launch-1.13-py2.7.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/plugins/Launch-1.13-py2.7.egg -------------------------------------------------------------------------------- /plugins/PyShell-0.8-py2.6.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/plugins/PyShell-0.8-py2.6.egg -------------------------------------------------------------------------------- /plugins/PyShell-0.8-py2.7.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/plugins/PyShell-0.8-py2.7.egg -------------------------------------------------------------------------------- /scripts/clean_dir.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Cleans up all the junk files from the project directories 3 | 4 | CWD=$(pwd) 5 | EXPATH=$(dirname $0) 6 | SCRIPT=$(basename $0) 7 | IGNORE=".svn .cvs" 8 | 9 | BLUE="" 10 | CYAN="" 11 | GREEN="" 12 | RED="" 13 | YELLOW="" 14 | OFF="" 15 | 16 | DELETED=0 17 | 18 | echo "${YELLOW}**${OFF} Cleaning Project Directories ${YELLOW}**${OFF}" 19 | sleep 2 20 | 21 | # Go to the script directory 22 | cd $EXPATH 23 | 24 | # Go to project 25 | cd .. 26 | PROJDIR=$(pwd) 27 | 28 | echo "${YELLOW}**${OFF} Starting from project root $PROJDIR" 29 | ls *~ 2>/dev/null 30 | if [ $? -eq 0 ]; then 31 | for f in $(ls *~); do 32 | echo "${RED}Deleting${OFF} $f"; 33 | rm -f "$f"; 34 | let "DELETED = $DELETED + 1" 35 | done 36 | fi 37 | 38 | for item in $(ls -R); do 39 | if [ "$(echo $item | grep \: )" != "" ]; then 40 | dest=$(echo $item | tr -d ":"); 41 | echo "${GREEN}Cleaning${OFF} $dest"; 42 | cd "$dest"; 43 | ls *~ 2>/dev/null; 44 | if [ $? -eq 0 ]; then 45 | for f in $(ls *~); do 46 | echo "${RED}Deleting${OFF} $f"; 47 | rm -f $f; 48 | let "DELETED = $DELETED + 1" 49 | done 50 | fi 51 | ls *.pyc 2>/dev/null 52 | if [ $? -eq 0 ]; then 53 | for f in $(ls *.pyc); do 54 | echo "${RED}Deleting${OFF} $f"; 55 | rm -f $f; 56 | let "DELETED = $DELETED + 1" 57 | done 58 | fi 59 | ls *.pyo 2>/dev/null 60 | if [ $? -eq 0 ]; then 61 | for f in $(ls *.pyo); do 62 | echo "${RED}Deleting${OFF} $f"; 63 | rm -f $f; 64 | let "DELETED = $DELETED + 1" 65 | done 66 | fi 67 | cd "$PROJDIR" 68 | fi 69 | done 70 | echo 71 | echo "${CYAN}Finished Cleaning Project Directories!!${OFF}" 72 | echo "A total of ${RED}$DELETED${OFF} files were cleaned from the project directories" 73 | echo 74 | -------------------------------------------------------------------------------- /scripts/editramac.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------------------------------------------- 3 | # Start up the Editra application bundle, passing along any 4 | # command-line args. (Mac OS X only) 5 | # ---------------------------------------------------------------------- 6 | 7 | #set -o xtrace 8 | 9 | if [ "$1" = "-c" ]; then 10 | # Use AppleScript to load the file(s) into a currently running Editra 11 | shift 12 | for f in "$@"; do 13 | ABSPATH=`readlink -f $f` 14 | osascript -e "tell app \"Editra\" to open (POSIX file \"$ABSPATH\")" 15 | done 16 | exit 0 17 | fi 18 | 19 | 20 | # Otherwise, start a new instance of Editra, passing the files on the command 21 | # line. First find the app bundle. 22 | if [ -z "$EDITRA_APP_DIR" ]; then 23 | myDir=`dirname "$0"` 24 | for i in ~/Applications $myDir $myDir/dist /Applications /Applications/MyApps/Editors; do 25 | if [ -x "$i/Editra.app" ]; then 26 | EDITRA_APP_DIR="$i" 27 | break 28 | fi 29 | done 30 | fi 31 | if [ -z "$EDITRA_APP_DIR" ];then 32 | echo "Sorry, cannot find Edita.app. Try setting the EDITRA_APP_DIR" 33 | echo "environment variable to the folder containing Editra.app." 34 | exit 1 35 | fi 36 | binary="$EDITRA_APP_DIR/Editra.app/Contents/MacOS/Editra" 37 | 38 | # Use readlink to ensure that we have absolute pathnames for each arg, 39 | # adding each result to an array 40 | declare -a A 41 | for f in ${1:+"$@"}; do 42 | A=( "${A[@]}" "`readlink -f "$f"`" ) 43 | done 44 | 45 | # Execute the binary, expanding the array on the command line. 46 | exec "$binary" "${A[@]}" 47 | 48 | 49 | # ---------------------------------------------------------------------- -------------------------------------------------------------------------------- /scripts/i18n/mkflist.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | 4 | def findFiles(path, flist): 5 | """Find all files under the given path""" 6 | if os.path.isdir(path): 7 | fnames = [ os.path.join(path, p) 8 | for p in os.listdir(path) 9 | if not p.startswith('.') and p != u'extern'] 10 | for fname in fnames: 11 | findFiles(fname, flist) 12 | elif path.endswith(u".py"): 13 | flist.append(path) 14 | 15 | if __name__ == '__main__': 16 | # Generate the file list 17 | path = u"../../src/" 18 | cbrowser = u"../../plugins/codebrowser/codebrowser/" 19 | fbrowser = u"../../plugins/filebrowser/filebrowser/" 20 | launch = u"../../plugins/Launch/Launch/" 21 | pshell = u"../../plugins/PyShell/PyShell/" 22 | 23 | flist = list() 24 | for p in (path, cbrowser, fbrowser, launch, pshell): 25 | findFiles(p, flist) 26 | 27 | f = open(u'app.fil', 'wb') 28 | f.write("\n".join(flist)) 29 | f.close() 30 | -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [easy_install] 2 | 3 | find_links = http://editra.org/uploads/src/ 4 | http://editra.org/uploads/egg/ 5 | 6 | -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: __init__.py # 3 | # Purpose: Import the required base modules needed for launching Editra into # 4 | # into the namespace. # 5 | # Author: Cody Precord # 6 | # Copyright: (c) 2007 Cody Precord # 7 | # Licence: wxWindows Licence # 8 | ############################################################################### 9 | """Main package module""" 10 | 11 | __author__ = "Cody Precord " 12 | __svnid__ = "$Id: __init__.py 49807 2007-11-10 07:08:33Z CJP $" 13 | __revision__ = "$Revision: 49807 $" 14 | -------------------------------------------------------------------------------- /src/autocomp/__init__.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: __init__.py # 3 | # Purpose: Initializes the autocomp package # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2007 Cody Precord # 6 | # Licence: wxWindows Licence # 7 | ############################################################################### 8 | 9 | """Autocomp sub package 10 | @note: this may be removed when the autocomp system becomes part of the plugin 11 | system 12 | 13 | """ 14 | __author__ = "Cody Precord " 15 | __svnid__ = "$Id: __init__.py 62467 2009-10-22 02:10:51Z CJP $" 16 | __revision__ = "$Revision: 62467 $" 17 | 18 | #-----------------------------------------------------------------------------# 19 | # Setup Public Namespace 20 | 21 | from autocomp import * 22 | from completer import * 23 | -------------------------------------------------------------------------------- /src/ebmlib/__init__.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: __init__.py # 3 | # Purpose: Editra Business Model Library # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2009 Cody Precord # 6 | # Licence: wxWindows Licence # 7 | ############################################################################### 8 | 9 | """ 10 | Editra Business Model Library: 11 | 12 | """ 13 | 14 | __author__ = "Cody Precord " 15 | __cvsid__ = "$Id: __init__.py 69798 2011-11-23 02:59:40Z CJP $" 16 | __revision__ = "$Revision: 69798 $" 17 | 18 | #-----------------------------------------------------------------------------# 19 | 20 | # Text Utils 21 | from searcheng import * 22 | from fchecker import * 23 | from fileutil import * 24 | from _dirmon import * 25 | from fileimpl import * 26 | from txtutil import * 27 | from logfile import * 28 | 29 | from backupmgr import * 30 | from calllock import * 31 | 32 | # Storage Classes 33 | from histcache import * 34 | from clipboard import * 35 | 36 | # Networking utilities 37 | from e_weblib import * 38 | 39 | # Misc 40 | from miscutil import * 41 | from _efactory import * 42 | from cmenumgr import * 43 | from efilehist import * 44 | from osutil import * 45 | from _threads import * 46 | from _trash import * 47 | -------------------------------------------------------------------------------- /src/ebmlib/miscutil.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: miscutil.py # 3 | # Purpose: Various helper functions. # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2009 Cody Precord # 6 | # Licence: wxWindows Licence # 7 | ############################################################################### 8 | 9 | """ 10 | Editra Business Model Library: MiscUtil 11 | 12 | Various helper functions 13 | 14 | """ 15 | 16 | __author__ = "Cody Precord " 17 | __cvsid__ = "$Id: miscutil.py 67329 2011-03-28 23:40:48Z CJP $" 18 | __revision__ = "$Revision: 67329 $" 19 | 20 | __all__ = [ 'MinMax', 'Singleton'] 21 | 22 | #-----------------------------------------------------------------------------# 23 | # Imports 24 | 25 | #-----------------------------------------------------------------------------# 26 | 27 | class Singleton(type): 28 | """Singleton metaclass for creating singleton classes 29 | @note: class being applied to must have a SetupWindow method 30 | 31 | """ 32 | def __init__(cls, name, bases, dict): 33 | super(Singleton, cls).__init__(name, bases, dict) 34 | cls.instance = None 35 | 36 | def __call__(cls, *args, **kw): 37 | if not cls.instance: 38 | # Not created or has been Destroyed 39 | obj = super(Singleton, cls).__call__(*args, **kw) 40 | cls.instance = obj 41 | 42 | return cls.instance 43 | 44 | #-----------------------------------------------------------------------------# 45 | 46 | def MinMax(arg1, arg2): 47 | """Return an ordered tuple of the minimum and maximum value 48 | of the two args. 49 | @return: tuple 50 | 51 | """ 52 | return min(arg1, arg2), max(arg1, arg2) 53 | -------------------------------------------------------------------------------- /src/ebmlib/txtutil.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: txtutil.py # 3 | # Purpose: Text Utilities. # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2009 Cody Precord # 6 | # Licence: wxWindows Licence # 7 | ############################################################################### 8 | 9 | """ 10 | Editra Business Model Library: Text Utilities 11 | 12 | Utility functions for managing and working with text. 13 | 14 | """ 15 | 16 | __author__ = "Cody Precord " 17 | __svnid__ = "$Id: txtutil.py 67991 2011-06-20 23:48:01Z CJP $" 18 | __revision__ = "$Revision: 67991 $" 19 | 20 | __all__ = [ 'IsUnicode', 'DecodeString'] 21 | 22 | #-----------------------------------------------------------------------------# 23 | # Imports 24 | import types 25 | 26 | #-----------------------------------------------------------------------------# 27 | 28 | def IsUnicode(txt): 29 | """Is the given string a unicode string 30 | @param txt: object 31 | @return: bool 32 | 33 | """ 34 | return isinstance(txt, types.UnicodeType) 35 | 36 | def DecodeString(txt, enc): 37 | """Decode the given string with the given encoding, 38 | only attempts to decode if the given txt is not already Unicode 39 | @param txt: string 40 | @param enc: encoding 'utf-8' 41 | @return: unicode 42 | 43 | """ 44 | if IsUnicode(txt): 45 | txt = txt.decode(enc) 46 | return txt 47 | -------------------------------------------------------------------------------- /src/eclib/__init__.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: __init__.py # 3 | # Purpose: Editra Control Library # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2007 Cody Precord # 6 | # Licence: wxWindows Licence # 7 | ############################################################################### 8 | 9 | """ 10 | Editra Control Library 11 | 12 | """ 13 | 14 | __author__ = "Cody Precord " 15 | __cvsid__ = "$Id: __init__.py 70469 2012-01-27 19:27:02Z CJP $" 16 | __revision__ = "$Revision: 70469 $" 17 | 18 | 19 | __all__ = ['auinavi', 'choicedlg', 'colorsetter', 'ctrlbox', 'eclutil', 20 | 'ecpickers', 'elistmix', 'encdlg', 'errdlg', 'finddlg', 'infodlg', 21 | 'panelbox', 'outbuff', 'platebtn', 'pstatbar', 'segmentbk', 22 | 'txtentry'] 23 | 24 | #-----------------------------------------------------------------------------# 25 | from ecbasewin import * 26 | 27 | from auinavi import * 28 | from choicedlg import * 29 | from colorsetter import * 30 | from ctrlbox import * 31 | from eclutil import * 32 | from ecpickers import * 33 | from elistmix import * 34 | from encdlg import * 35 | from errdlg import * 36 | from filterdlg import * 37 | from finddlg import * 38 | from infodlg import * 39 | from outbuff import * 40 | from panelbox import * 41 | from platebtn import * 42 | from pstatbar import * 43 | from segmentbk import * 44 | from txtentry import * 45 | from elistctrl import * 46 | from _filetree import * 47 | from _infobar import * 48 | 49 | # TODO: Delete module entries once all plugins have been updated to not 50 | # import them separately. 51 | -------------------------------------------------------------------------------- /src/ed_thread.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: ed_thread.py # 3 | # Purpose: Provides Thread Pool interface and access # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2011 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """ 10 | Implements and provides the interface for dispatching asynchronous jobs through 11 | the Editra Threadpool. 12 | 13 | """ 14 | 15 | __author__ = "Cody Precord " 16 | __svnid__ = "$Id: ed_thread.py 67397 2011-04-05 20:46:23Z CJP $" 17 | __revision__ = "$Revision: 67397 $" 18 | 19 | #-----------------------------------------------------------------------------# 20 | # Imports 21 | import wx 22 | 23 | # Local Imports 24 | import ebmlib 25 | 26 | #-----------------------------------------------------------------------------# 27 | 28 | class EdThreadPool(ebmlib.ThreadPool): 29 | """Singleton ThreadPool""" 30 | __metaclass__ = ebmlib.Singleton 31 | def __init__(self): 32 | super(EdThreadPool, self).__init__(5) # 5 Threads 33 | 34 | #-----------------------------------------------------------------------------# 35 | -------------------------------------------------------------------------------- /src/extern/README: -------------------------------------------------------------------------------- 1 | This directory contains python modules that are distributed as part of Editra 2 | but were not originally written as part of this project. 3 | 4 | See each module for their individual licensing and other related information. 5 | 6 | 7 | pygments 1.0 (BSD) 8 | 9 | # Modifications notes for updates 10 | 11 | 1) In lexers/web.py remove + from (r'[{}\[\]();.]+', Punctuation), 12 | -------------------------------------------------------------------------------- /src/extern/__init__.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: __init__.py # 3 | # Purpose: Puts external modules in the namespace # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2007 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | """External Module Package 9 | Modules that Editra depends on that are where not developed for the project but 10 | are distributed with it, either because of slight customizations made to them 11 | or to reduce what is needed to be installed when installing Editra. 12 | 13 | @note: modules in this directory are dependancies and addons that are not 14 | part of the core code. 15 | 16 | """ 17 | __author__ = "Cody Precord " 18 | __svnid__ = "$Id: __init__.py 52855 2008-03-27 14:53:06Z CJP $" 19 | __revision__ = "$Revision: 52855 $" 20 | 21 | __all__ = ['ez_setup', 'pkg_resources', 'events', 'flatnotebook'] 22 | 23 | -------------------------------------------------------------------------------- /src/extern/pygments/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006 by the respective authors (see AUTHORS file). 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are 6 | met: 7 | 8 | * Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above 12 | copyright notice, this list of conditions and the following 13 | disclaimer in the documentation and/or other materials provided 14 | with the distribution. 15 | 16 | * The names of the contributors may not be used to endorse or 17 | promote products derived from this software without specific 18 | prior written permission. 19 | 20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | -------------------------------------------------------------------------------- /src/extern/pygments/console.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.console 4 | ~~~~~~~~~~~~~~~~ 5 | 6 | Format colored console output. 7 | 8 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 9 | :license: BSD, see LICENSE for details. 10 | """ 11 | 12 | esc = "\x1b[" 13 | 14 | codes = {} 15 | codes[""] = "" 16 | codes["reset"] = esc + "39;49;00m" 17 | 18 | codes["bold"] = esc + "01m" 19 | codes["faint"] = esc + "02m" 20 | codes["standout"] = esc + "03m" 21 | codes["underline"] = esc + "04m" 22 | codes["blink"] = esc + "05m" 23 | codes["overline"] = esc + "06m" 24 | 25 | dark_colors = ["black", "darkred", "darkgreen", "brown", "darkblue", 26 | "purple", "teal", "lightgray"] 27 | light_colors = ["darkgray", "red", "green", "yellow", "blue", 28 | "fuchsia", "turquoise", "white"] 29 | 30 | x = 30 31 | for d, l in zip(dark_colors, light_colors): 32 | codes[d] = esc + "%im" % x 33 | codes[l] = esc + "%i;01m" % x 34 | x += 1 35 | 36 | del d, l, x 37 | 38 | codes["darkteal"] = codes["turquoise"] 39 | codes["darkyellow"] = codes["brown"] 40 | codes["fuscia"] = codes["fuchsia"] 41 | codes["white"] = codes["bold"] 42 | 43 | 44 | def reset_color(): 45 | return codes["reset"] 46 | 47 | 48 | def colorize(color_key, text): 49 | return codes[color_key] + text + codes["reset"] 50 | 51 | 52 | def ansiformat(attr, text): 53 | """ 54 | Format ``text`` with a color and/or some attributes:: 55 | 56 | color normal color 57 | *color* bold color 58 | _color_ underlined color 59 | +color+ blinking color 60 | """ 61 | result = [] 62 | if attr[:1] == attr[-1:] == '+': 63 | result.append(codes['blink']) 64 | attr = attr[1:-1] 65 | if attr[:1] == attr[-1:] == '*': 66 | result.append(codes['bold']) 67 | attr = attr[1:-1] 68 | if attr[:1] == attr[-1:] == '_': 69 | result.append(codes['underline']) 70 | attr = attr[1:-1] 71 | result.append(codes[attr]) 72 | result.append(text) 73 | result.append(codes['reset']) 74 | return ''.join(result) 75 | -------------------------------------------------------------------------------- /src/extern/pygments/filter.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.filter 4 | ~~~~~~~~~~~~~~~ 5 | 6 | Module that implements the default filter. 7 | 8 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 9 | :license: BSD, see LICENSE for details. 10 | """ 11 | 12 | 13 | def apply_filters(stream, filters, lexer=None): 14 | """ 15 | Use this method to apply an iterable of filters to 16 | a stream. If lexer is given it's forwarded to the 17 | filter, otherwise the filter receives `None`. 18 | """ 19 | def _apply(filter_, stream): 20 | for token in filter_.filter(lexer, stream): 21 | yield token 22 | for filter_ in filters: 23 | stream = _apply(filter_, stream) 24 | return stream 25 | 26 | 27 | def simplefilter(f): 28 | """ 29 | Decorator that converts a function into a filter:: 30 | 31 | @simplefilter 32 | def lowercase(lexer, stream, options): 33 | for ttype, value in stream: 34 | yield ttype, value.lower() 35 | """ 36 | return type(f.__name__, (FunctionFilter,), { 37 | 'function': f, 38 | '__module__': getattr(f, '__module__'), 39 | '__doc__': f.__doc__ 40 | }) 41 | 42 | 43 | class Filter(object): 44 | """ 45 | Default filter. Subclass this class or use the `simplefilter` 46 | decorator to create own filters. 47 | """ 48 | 49 | def __init__(self, **options): 50 | self.options = options 51 | 52 | def filter(self, lexer, stream): 53 | raise NotImplementedError() 54 | 55 | 56 | class FunctionFilter(Filter): 57 | """ 58 | Abstract class used by `simplefilter` to create simple 59 | function filters on the fly. The `simplefilter` decorator 60 | automatically creates subclasses of this class for 61 | functions passed to it. 62 | """ 63 | function = None 64 | 65 | def __init__(self, **options): 66 | if not hasattr(self, 'function'): 67 | raise TypeError('%r used without bound function' % 68 | self.__class__.__name__) 69 | Filter.__init__(self, **options) 70 | 71 | def filter(self, lexer, stream): 72 | # pylint: disable-msg=E1102 73 | for ttype, value in self.function(lexer, stream, self.options): 74 | yield ttype, value 75 | -------------------------------------------------------------------------------- /src/extern/pygments/formatters/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.formatters 4 | ~~~~~~~~~~~~~~~~~~~ 5 | 6 | Pygments formatters. 7 | 8 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 9 | :license: BSD, see LICENSE for details. 10 | """ 11 | import os.path 12 | import fnmatch 13 | 14 | from pygments.formatters._mapping import FORMATTERS 15 | from pygments.plugin import find_plugin_formatters 16 | from pygments.util import ClassNotFound 17 | 18 | ns = globals() 19 | for fcls in FORMATTERS: 20 | ns[fcls.__name__] = fcls 21 | del fcls 22 | 23 | __all__ = ['get_formatter_by_name', 'get_formatter_for_filename', 24 | 'get_all_formatters'] + [cls.__name__ for cls in FORMATTERS] 25 | 26 | 27 | _formatter_alias_cache = {} 28 | _formatter_filename_cache = [] 29 | 30 | def _init_formatter_cache(): 31 | if _formatter_alias_cache: 32 | return 33 | for cls in get_all_formatters(): 34 | for alias in cls.aliases: 35 | _formatter_alias_cache[alias] = cls 36 | for fn in cls.filenames: 37 | _formatter_filename_cache.append((fn, cls)) 38 | 39 | 40 | def find_formatter_class(name): 41 | _init_formatter_cache() 42 | cls = _formatter_alias_cache.get(name, None) 43 | return cls 44 | 45 | 46 | def get_formatter_by_name(name, **options): 47 | _init_formatter_cache() 48 | cls = _formatter_alias_cache.get(name, None) 49 | if not cls: 50 | raise ClassNotFound("No formatter found for name %r" % name) 51 | return cls(**options) 52 | 53 | 54 | def get_formatter_for_filename(fn, **options): 55 | _init_formatter_cache() 56 | fn = os.path.basename(fn) 57 | for pattern, cls in _formatter_filename_cache: 58 | if fnmatch.fnmatch(fn, pattern): 59 | return cls(**options) 60 | raise ClassNotFound("No formatter found for file name %r" % fn) 61 | 62 | 63 | def get_all_formatters(): 64 | """Return a generator for all formatters.""" 65 | for formatter in FORMATTERS: 66 | yield formatter 67 | for _, formatter in find_plugin_formatters(): 68 | yield formatter 69 | -------------------------------------------------------------------------------- /src/extern/pygments/plugin.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.plugin 4 | ~~~~~~~~~~~~~~~ 5 | 6 | Pygments setuptools plugin interface. The methods defined 7 | here also work if setuptools isn't installed but they just 8 | return nothing. 9 | 10 | lexer plugins:: 11 | 12 | [pygments.lexers] 13 | yourlexer = yourmodule:YourLexer 14 | 15 | formatter plugins:: 16 | 17 | [pygments.formatters] 18 | yourformatter = yourformatter:YourFormatter 19 | /.ext = yourformatter:YourFormatter 20 | 21 | As you can see, you can define extensions for the formatter 22 | with a leading slash. 23 | 24 | syntax plugins:: 25 | 26 | [pygments.styles] 27 | yourstyle = yourstyle:YourStyle 28 | 29 | filter plugin:: 30 | 31 | [pygments.filter] 32 | yourfilter = yourfilter:YourFilter 33 | 34 | 35 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 36 | :license: BSD, see LICENSE for details. 37 | """ 38 | try: 39 | import pkg_resources 40 | except ImportError: 41 | pkg_resources = None 42 | 43 | LEXER_ENTRY_POINT = 'pygments.lexers' 44 | FORMATTER_ENTRY_POINT = 'pygments.formatters' 45 | STYLE_ENTRY_POINT = 'pygments.styles' 46 | FILTER_ENTRY_POINT = 'pygments.filters' 47 | 48 | 49 | def find_plugin_lexers(): 50 | if pkg_resources is None: 51 | return 52 | for entrypoint in pkg_resources.iter_entry_points(LEXER_ENTRY_POINT): 53 | yield entrypoint.load() 54 | 55 | 56 | def find_plugin_formatters(): 57 | if pkg_resources is None: 58 | return 59 | for entrypoint in pkg_resources.iter_entry_points(FORMATTER_ENTRY_POINT): 60 | yield entrypoint.name, entrypoint.load() 61 | 62 | 63 | def find_plugin_styles(): 64 | if pkg_resources is None: 65 | return 66 | for entrypoint in pkg_resources.iter_entry_points(STYLE_ENTRY_POINT): 67 | yield entrypoint.name, entrypoint.load() 68 | 69 | 70 | def find_plugin_filters(): 71 | if pkg_resources is None: 72 | return 73 | for entrypoint in pkg_resources.iter_entry_points(FILTER_ENTRY_POINT): 74 | yield entrypoint.name, entrypoint.load() 75 | -------------------------------------------------------------------------------- /src/extern/pygments/styles/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.styles 4 | ~~~~~~~~~~~~~~~ 5 | 6 | Contains built-in styles. 7 | 8 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 9 | :license: BSD, see LICENSE for details. 10 | """ 11 | 12 | from pygments.plugin import find_plugin_styles 13 | from pygments.util import ClassNotFound 14 | 15 | 16 | #: Maps style names to 'submodule::classname'. 17 | STYLE_MAP = { 18 | 'default': 'default::DefaultStyle', 19 | 'emacs': 'emacs::EmacsStyle', 20 | 'friendly': 'friendly::FriendlyStyle', 21 | 'colorful': 'colorful::ColorfulStyle', 22 | 'autumn': 'autumn::AutumnStyle', 23 | 'murphy': 'murphy::MurphyStyle', 24 | 'manni': 'manni::ManniStyle', 25 | 'monokai': 'monokai::MonokaiStyle', 26 | 'perldoc': 'perldoc::PerldocStyle', 27 | 'pastie': 'pastie::PastieStyle', 28 | 'borland': 'borland::BorlandStyle', 29 | 'trac': 'trac::TracStyle', 30 | 'native': 'native::NativeStyle', 31 | 'fruity': 'fruity::FruityStyle', 32 | 'bw': 'bw::BlackWhiteStyle', 33 | 'vim': 'vim::VimStyle', 34 | 'vs': 'vs::VisualStudioStyle', 35 | 'tango': 'tango::TangoStyle', 36 | } 37 | 38 | 39 | def get_style_by_name(name): 40 | if name in STYLE_MAP: 41 | mod, cls = STYLE_MAP[name].split('::') 42 | builtin = "yes" 43 | else: 44 | for found_name, style in find_plugin_styles(): 45 | if name == found_name: 46 | return style 47 | # perhaps it got dropped into our styles package 48 | builtin = "" 49 | mod = name 50 | cls = name.title() + "Style" 51 | 52 | try: 53 | mod = __import__('pygments.styles.' + mod, None, None, [cls]) 54 | except ImportError: 55 | raise ClassNotFound("Could not find style module %r" % mod + 56 | (builtin and ", though it should be builtin") + ".") 57 | try: 58 | return getattr(mod, cls) 59 | except AttributeError: 60 | raise ClassNotFound("Could not find style class %r in style module." % cls) 61 | 62 | 63 | def get_all_styles(): 64 | """Return an generator for all styles by name, 65 | both builtin and plugin.""" 66 | for name in STYLE_MAP: 67 | yield name 68 | for name, _ in find_plugin_styles(): 69 | yield name 70 | -------------------------------------------------------------------------------- /src/extern/pygments/styles/borland.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.styles.borland 4 | ~~~~~~~~~~~~~~~~~~~~~~~ 5 | 6 | Style similar to the style used in the Borland IDEs. 7 | 8 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 9 | :license: BSD, see LICENSE for details. 10 | """ 11 | 12 | from pygments.style import Style 13 | from pygments.token import Keyword, Name, Comment, String, Error, \ 14 | Number, Operator, Generic, Whitespace 15 | 16 | 17 | class BorlandStyle(Style): 18 | """ 19 | Style similar to the style used in the borland IDEs. 20 | """ 21 | 22 | default_style = '' 23 | 24 | styles = { 25 | Whitespace: '#bbbbbb', 26 | 27 | Comment: 'italic #008800', 28 | Comment.Preproc: 'noitalic #008080', 29 | Comment.Special: 'noitalic bold', 30 | 31 | String: '#0000FF', 32 | String.Char: '#800080', 33 | Number: '#0000FF', 34 | Keyword: 'bold #000080', 35 | Operator.Word: 'bold', 36 | Name.Tag: 'bold #000080', 37 | Name.Attribute: '#FF0000', 38 | 39 | Generic.Heading: '#999999', 40 | Generic.Subheading: '#aaaaaa', 41 | Generic.Deleted: 'bg:#ffdddd #000000', 42 | Generic.Inserted: 'bg:#ddffdd #000000', 43 | Generic.Error: '#aa0000', 44 | Generic.Emph: 'italic', 45 | Generic.Strong: 'bold', 46 | Generic.Prompt: '#555555', 47 | Generic.Output: '#888888', 48 | Generic.Traceback: '#aa0000', 49 | 50 | Error: 'bg:#e3d2d2 #a61717' 51 | } 52 | -------------------------------------------------------------------------------- /src/extern/pygments/styles/bw.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.styles.bw 4 | ~~~~~~~~~~~~~~~~~~ 5 | 6 | Simple black/white only style. 7 | 8 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 9 | :license: BSD, see LICENSE for details. 10 | """ 11 | 12 | from pygments.style import Style 13 | from pygments.token import Keyword, Name, Comment, String, Error, \ 14 | Operator, Generic 15 | 16 | 17 | class BlackWhiteStyle(Style): 18 | 19 | background_color = "#ffffff" 20 | default_style = "" 21 | 22 | styles = { 23 | Comment: "italic", 24 | Comment.Preproc: "noitalic", 25 | 26 | Keyword: "bold", 27 | Keyword.Pseudo: "nobold", 28 | Keyword.Type: "nobold", 29 | 30 | Operator.Word: "bold", 31 | 32 | Name.Class: "bold", 33 | Name.Namespace: "bold", 34 | Name.Exception: "bold", 35 | Name.Entity: "bold", 36 | Name.Tag: "bold", 37 | 38 | String: "italic", 39 | String.Interpol: "bold", 40 | String.Escape: "bold", 41 | 42 | Generic.Heading: "bold", 43 | Generic.Subheading: "bold", 44 | Generic.Emph: "italic", 45 | Generic.Strong: "bold", 46 | Generic.Prompt: "bold", 47 | 48 | Error: "border:#FF0000" 49 | } 50 | -------------------------------------------------------------------------------- /src/extern/pygments/styles/fruity.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.styles.fruity 4 | ~~~~~~~~~~~~~~~~~~~~~~ 5 | 6 | pygments version of my "fruity" vim theme. 7 | 8 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 9 | :license: BSD, see LICENSE for details. 10 | """ 11 | 12 | from pygments.style import Style 13 | from pygments.token import Token, Comment, Name, Keyword, \ 14 | Generic, Number, String, Whitespace 15 | 16 | class FruityStyle(Style): 17 | """ 18 | Pygments version of the "native" vim theme. 19 | """ 20 | 21 | background_color = '#111111' 22 | highlight_color = '#333333' 23 | 24 | styles = { 25 | Whitespace: '#888888', 26 | Token: '#ffffff', 27 | Generic.Output: '#444444 bg:#222222', 28 | Keyword: '#fb660a bold', 29 | Keyword.Pseudo: 'nobold', 30 | Number: '#0086f7 bold', 31 | Name.Tag: '#fb660a bold', 32 | Name.Variable: '#fb660a', 33 | Name.Constant: '#fb660a', 34 | Comment: '#008800 bg:#0f140f italic', 35 | Name.Attribute: '#ff0086 bold', 36 | String: '#0086d2', 37 | Name.Function: '#ff0086 bold', 38 | Generic.Heading: '#ffffff bold', 39 | Keyword.Type: '#cdcaa9 bold', 40 | Generic.Subheading: '#ffffff bold', 41 | Name.Constant: '#0086d2', 42 | Comment.Preproc: '#ff0007 bold' 43 | } 44 | -------------------------------------------------------------------------------- /src/extern/pygments/styles/native.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.styles.native 4 | ~~~~~~~~~~~~~~~~~~~~~~ 5 | 6 | pygments version of my "native" vim theme. 7 | 8 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 9 | :license: BSD, see LICENSE for details. 10 | """ 11 | 12 | from pygments.style import Style 13 | from pygments.token import Keyword, Name, Comment, String, Error, \ 14 | Number, Operator, Generic, Token, Whitespace 15 | 16 | 17 | class NativeStyle(Style): 18 | """ 19 | Pygments version of the "native" vim theme. 20 | """ 21 | 22 | background_color = '#202020' 23 | highlight_color = '#404040' 24 | 25 | styles = { 26 | Token: '#d0d0d0', 27 | Whitespace: '#666666', 28 | 29 | Comment: 'italic #999999', 30 | Comment.Preproc: 'noitalic bold #cd2828', 31 | Comment.Special: 'noitalic bold #e50808 bg:#520000', 32 | 33 | Keyword: 'bold #6ab825', 34 | Keyword.Pseudo: 'nobold', 35 | Operator.Word: 'bold #6ab825', 36 | 37 | String: '#ed9d13', 38 | String.Other: '#ffa500', 39 | 40 | Number: '#3677a9', 41 | 42 | Name.Builtin: '#24909d', 43 | Name.Variable: '#40ffff', 44 | Name.Constant: '#40ffff', 45 | Name.Class: 'underline #447fcf', 46 | Name.Function: '#447fcf', 47 | Name.Namespace: 'underline #447fcf', 48 | Name.Exception: '#bbbbbb', 49 | Name.Tag: 'bold #6ab825', 50 | Name.Attribute: '#bbbbbb', 51 | Name.Decorator: '#ffa500', 52 | 53 | Generic.Heading: 'bold #ffffff', 54 | Generic.Subheading: 'underline #ffffff', 55 | Generic.Deleted: '#d22323', 56 | Generic.Inserted: '#589819', 57 | Generic.Error: '#d22323', 58 | Generic.Emph: 'italic', 59 | Generic.Strong: 'bold', 60 | Generic.Prompt: '#aaaaaa', 61 | Generic.Output: '#cccccc', 62 | Generic.Traceback: '#d22323', 63 | 64 | Error: 'bg:#e3d2d2 #a61717' 65 | } 66 | -------------------------------------------------------------------------------- /src/extern/pygments/styles/trac.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.styles.trac 4 | ~~~~~~~~~~~~~~~~~~~~ 5 | 6 | Port of the default trac highlighter design. 7 | 8 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 9 | :license: BSD, see LICENSE for details. 10 | """ 11 | 12 | from pygments.style import Style 13 | from pygments.token import Keyword, Name, Comment, String, Error, \ 14 | Number, Operator, Generic, Whitespace 15 | 16 | 17 | class TracStyle(Style): 18 | """ 19 | Port of the default trac highlighter design. 20 | """ 21 | 22 | default_style = '' 23 | 24 | styles = { 25 | Whitespace: '#bbbbbb', 26 | Comment: 'italic #999988', 27 | Comment.Preproc: 'bold noitalic #999999', 28 | Comment.Special: 'bold #999999', 29 | 30 | Operator: 'bold', 31 | 32 | String: '#bb8844', 33 | String.Regex: '#808000', 34 | 35 | Number: '#009999', 36 | 37 | Keyword: 'bold', 38 | Keyword.Type: '#445588', 39 | 40 | Name.Builtin: '#999999', 41 | Name.Function: 'bold #990000', 42 | Name.Class: 'bold #445588', 43 | Name.Exception: 'bold #990000', 44 | Name.Namespace: '#555555', 45 | Name.Variable: '#008080', 46 | Name.Constant: '#008080', 47 | Name.Tag: '#000080', 48 | Name.Attribute: '#008080', 49 | Name.Entity: '#800080', 50 | 51 | Generic.Heading: '#999999', 52 | Generic.Subheading: '#aaaaaa', 53 | Generic.Deleted: 'bg:#ffdddd #000000', 54 | Generic.Inserted: 'bg:#ddffdd #000000', 55 | Generic.Error: '#aa0000', 56 | Generic.Emph: 'italic', 57 | Generic.Strong: 'bold', 58 | Generic.Prompt: '#555555', 59 | Generic.Output: '#888888', 60 | Generic.Traceback: '#aa0000', 61 | 62 | Error: 'bg:#e3d2d2 #a61717' 63 | } 64 | -------------------------------------------------------------------------------- /src/extern/pygments/styles/vim.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.styles.vim 4 | ~~~~~~~~~~~~~~~~~~~ 5 | 6 | A highlighting style for Pygments, inspired by vim. 7 | 8 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 9 | :license: BSD, see LICENSE for details. 10 | """ 11 | 12 | from pygments.style import Style 13 | from pygments.token import Keyword, Name, Comment, String, Error, \ 14 | Number, Operator, Generic, Whitespace, Token 15 | 16 | 17 | class VimStyle(Style): 18 | """ 19 | Styles somewhat like vim 7.0 20 | """ 21 | 22 | background_color = "#000000" 23 | highlight_color = "#222222" 24 | default_style = "#cccccc" 25 | 26 | styles = { 27 | Token: "#cccccc", 28 | Whitespace: "", 29 | Comment: "#000080", 30 | Comment.Preproc: "", 31 | Comment.Special: "bold #cd0000", 32 | 33 | Keyword: "#cdcd00", 34 | Keyword.Declaration: "#00cd00", 35 | Keyword.Namespace: "#cd00cd", 36 | Keyword.Pseudo: "", 37 | Keyword.Type: "#00cd00", 38 | 39 | Operator: "#3399cc", 40 | Operator.Word: "#cdcd00", 41 | 42 | Name: "", 43 | Name.Class: "#00cdcd", 44 | Name.Builtin: "#cd00cd", 45 | Name.Exception: "bold #666699", 46 | Name.Variable: "#00cdcd", 47 | 48 | String: "#cd0000", 49 | Number: "#cd00cd", 50 | 51 | Generic.Heading: "bold #000080", 52 | Generic.Subheading: "bold #800080", 53 | Generic.Deleted: "#cd0000", 54 | Generic.Inserted: "#00cd00", 55 | Generic.Error: "#FF0000", 56 | Generic.Emph: "italic", 57 | Generic.Strong: "bold", 58 | Generic.Prompt: "bold #000080", 59 | Generic.Output: "#888", 60 | Generic.Traceback: "#04D", 61 | 62 | Error: "border:#FF0000" 63 | } 64 | -------------------------------------------------------------------------------- /src/extern/pygments/styles/vs.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | pygments.styles.vs 4 | ~~~~~~~~~~~~~~~~~~ 5 | 6 | Simple style with MS Visual Studio colors. 7 | 8 | :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. 9 | :license: BSD, see LICENSE for details. 10 | """ 11 | 12 | from pygments.style import Style 13 | from pygments.token import Keyword, Name, Comment, String, Error, \ 14 | Operator, Generic 15 | 16 | 17 | class VisualStudioStyle(Style): 18 | 19 | background_color = "#ffffff" 20 | default_style = "" 21 | 22 | styles = { 23 | Comment: "#008000", 24 | Comment.Preproc: "#0000ff", 25 | Keyword: "#0000ff", 26 | Operator.Word: "#0000ff", 27 | Keyword.Type: "#2b91af", 28 | Name.Class: "#2b91af", 29 | String: "#a31515", 30 | 31 | Generic.Heading: "bold", 32 | Generic.Subheading: "bold", 33 | Generic.Emph: "italic", 34 | Generic.Strong: "bold", 35 | Generic.Prompt: "bold", 36 | 37 | Error: "border:#FF0000" 38 | } 39 | -------------------------------------------------------------------------------- /src/info.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: info.py # 3 | # Purpose: Global project information # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2008 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """Editra Project information module""" 10 | 11 | __author__ = "Cody Precord " 12 | __svnid__ = "$Id: info.py 73347 2013-01-05 19:58:31Z CJP $" 13 | __revision__ = "$Revision: 73347 $" 14 | 15 | #-----------------------------------------------------------------------------# 16 | 17 | AUTHOR = 'Cody Precord' 18 | VERSION = '0.7.20' 19 | PROG_NAME = 'Editra' 20 | HOME_PAGE = "http://editra.org" 21 | I18N_PAGE = "https://translations.launchpad.net/editra/trunk/+pots/editra" 22 | CONTACT_MAIL = "staff@editra.org" 23 | -------------------------------------------------------------------------------- /src/syntax/__init__.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: __init__.py # 3 | # Purpose: initialize the syntax package # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2007 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | """Syntax data package 9 | 10 | Provides: 11 | - Keyword Data 12 | - Syntax styling definitions 13 | 14 | For all differn't file types and languages supported by Editra 15 | 16 | """ 17 | __author__ = "Cody Precord " 18 | __svnid__ = "$Id: __init__.py 63070 2010-01-05 01:56:27Z CJP $" 19 | __revision__ = "$Revision: 63070 $" 20 | 21 | #-----------------------------------------------------------------------------# 22 | # Setup Namespace 23 | 24 | from synxml import * 25 | 26 | #-----------------------------------------------------------------------------# -------------------------------------------------------------------------------- /src/syntax/_make.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: make.py # 3 | # Purpose: Define Makefile syntax for highlighting and other features # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2007 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """ 10 | FILE: make.py 11 | AUTHOR: Cody Precord 12 | @summary: Lexer configuration module for Makefiles. 13 | 14 | """ 15 | 16 | __author__ = "Cody Precord " 17 | __svnid__ = "$Id: _make.py 68798 2011-08-20 17:17:05Z CJP $" 18 | __revision__ = "$Revision: 68798 $" 19 | 20 | #-----------------------------------------------------------------------------# 21 | # Imports 22 | import wx.stc as stc 23 | 24 | # Local Imports 25 | import syndata 26 | 27 | #-----------------------------------------------------------------------------# 28 | # Syntax Style Specs 29 | SYNTAX_ITEMS = [ (stc.STC_MAKE_DEFAULT, 'default_style'), 30 | (stc.STC_MAKE_COMMENT, 'comment_style'), 31 | (stc.STC_MAKE_IDENTIFIER, 'scalar_style'), 32 | (stc.STC_MAKE_IDEOL, 'ideol_style'), 33 | (stc.STC_MAKE_OPERATOR, 'operator_style'), 34 | (stc.STC_MAKE_PREPROCESSOR, 'pre2_style'), 35 | (stc.STC_MAKE_TARGET, 'keyword_style') ] 36 | 37 | #-----------------------------------------------------------------------------# 38 | 39 | class SyntaxData(syndata.SyntaxDataBase): 40 | """SyntaxData object for Makefiles""" 41 | def __init__(self, langid): 42 | super(SyntaxData, self).__init__(langid) 43 | 44 | # Setup 45 | self.SetLexer(stc.STC_LEX_MAKEFILE) 46 | 47 | def GetSyntaxSpec(self): 48 | """Syntax Specifications """ 49 | return SYNTAX_ITEMS 50 | 51 | def GetCommentPattern(self): 52 | """Returns a list of characters used to comment a block of code """ 53 | return [u'#'] 54 | -------------------------------------------------------------------------------- /src/syntax/_pike.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: pike.py # 3 | # Purpose: Define highlighting/syntax for Pike programming language # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2007 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """ 10 | FILE: pike.py 11 | @summary: Defines syntax and highlighting settings for the Pike programming 12 | language. Pike is very similar in form to C/CPP so the Cpp lexer is 13 | used to provide the highlighting settings. 14 | 15 | """ 16 | 17 | __author__ = "Cody Precord " 18 | __svnid__ = "$Id: _pike.py 68798 2011-08-20 17:17:05Z CJP $" 19 | __revision__ = "$Revision: 68798 $" 20 | 21 | #-----------------------------------------------------------------------------# 22 | # Imports 23 | import wx.stc as stc 24 | 25 | # Local Imports 26 | import synglob 27 | import syndata 28 | import _cpp 29 | 30 | #-----------------------------------------------------------------------------# 31 | 32 | #---- Keyword Definitions ----# 33 | PIKE_KW = (0, "goto break return continue case default if else switch while " 34 | "foreach do gauge destruct lambda inherit import typeof catch " 35 | "for inline nomask") 36 | 37 | PIKE_TYPE = (1, "private protected public static " 38 | "int string void float mapping array multiset mixed program " 39 | "object function") 40 | #---- End Keyword Definitions ----# 41 | 42 | #-----------------------------------------------------------------------------# 43 | 44 | class SyntaxData(_cpp.SyntaxData): 45 | """SyntaxData object for Pike""" 46 | def __init__(self, langid): 47 | super(SyntaxData, self).__init__(langid) 48 | 49 | def GetKeywords(self): 50 | """Returns Specified Keywords List """ 51 | return [PIKE_KW, PIKE_TYPE, _cpp.DOC_KEYWORDS] 52 | 53 | def GetCommentPattern(self): 54 | """Get the comment pattern""" 55 | return [u"//"] 56 | -------------------------------------------------------------------------------- /src/syntax/_xml.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: xml.py # 3 | # Purpose: Define XML syntax for highlighting and other features # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2007 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """ 10 | FILE: xml.py 11 | AUTHOR: Cody Precord 12 | @summary: Lexer configuration module for XML Files. 13 | 14 | """ 15 | 16 | __author__ = "Cody Precord " 17 | __svnid__ = "$Id: _xml.py 68798 2011-08-20 17:17:05Z CJP $" 18 | __revision__ = "$Revision: 68798 $" 19 | 20 | #-----------------------------------------------------------------------------# 21 | # Imports 22 | import wx.stc as stc 23 | 24 | # Local Imports 25 | import synglob 26 | import syndata 27 | import _html 28 | 29 | #-----------------------------------------------------------------------------# 30 | 31 | #---- Keyword Specifications ----# 32 | 33 | # Xml Keywords 34 | XML_KEYWORDS = ("rss atom pubDate channel version title link description " 35 | "language generator item") 36 | 37 | #-----------------------------------------------------------------------------# 38 | 39 | class SyntaxData(syndata.SyntaxDataBase): 40 | """SyntaxData object for XML""" 41 | def __init__(self, langid): 42 | super(SyntaxData, self).__init__(langid) 43 | 44 | # Setup 45 | self.SetLexer(stc.STC_LEX_XML) 46 | self.RegisterFeature(synglob.FEATURE_AUTOINDENT, _html.AutoIndenter) 47 | 48 | def GetKeywords(self): 49 | """Returns Specified Keywords List """ 50 | sgml = _html.KeywordString(synglob.ID_LANG_SGML) 51 | return [(5, XML_KEYWORDS + u" " + sgml)] 52 | 53 | def GetSyntaxSpec(self): 54 | """Syntax Specifications """ 55 | return _html.SYNTAX_ITEMS 56 | 57 | def GetProperties(self): 58 | """Returns a list of Extra Properties to set """ 59 | return [_html.FOLD, _html.FLD_HTML] 60 | 61 | def GetCommentPattern(self): 62 | """Returns a list of characters used to comment a block of code """ 63 | return [u''] 64 | -------------------------------------------------------------------------------- /src/wxcompat.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: wxcompat.py # 3 | # Purpose: Help with compatibility between wx versions. # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2008 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """ 10 | @summary: wx Compatibility helper module 11 | 12 | """ 13 | 14 | __author__ = "Cody Precord " 15 | __svnid__ = "$Id: wxcompat.py 68998 2011-09-03 22:03:32Z CJP $" 16 | __revision__ = "$Revision: 68998 $" 17 | 18 | #-----------------------------------------------------------------------------# 19 | # Imports 20 | import os 21 | import wx 22 | 23 | #-----------------------------------------------------------------------------# 24 | 25 | if wx.Platform == '__WXMAC__': 26 | # MacThemeColour is defined in wxPython2.9 but does not exist in 2.8 27 | # This is a 2.8 version of this method. 28 | if not hasattr(wx, 'MacThemeColour'): 29 | def MacThemeColour(theme_id): 30 | """Get a specified Mac theme colour 31 | @param theme_id: Carbon theme id 32 | @return: wx.Colour 33 | 34 | """ 35 | brush = wx.Brush(wx.BLACK) 36 | brush.MacSetTheme(theme_id) 37 | return brush.GetColour() 38 | 39 | wx.MacThemeColour = MacThemeColour 40 | 41 | wx.SystemOptions.SetOptionInt("mac.textcontrol-use-spell-checker", 1) 42 | 43 | elif wx.Platform == '__WXGTK__': 44 | os.environ['LIBOVERLAY_SCROLLBAR'] = '0' 45 | 46 | # GetText is not available in 2.9 but GetItemLabel is not available pre 2.8.6 47 | if wx.VERSION < (2, 8, 6, 0, ''): 48 | wx.MenuItem.GetItemLabel = wx.MenuItem.GetText 49 | wx.MenuItem.GetItemLabelText = wx.MenuItem.GetLabel 50 | -------------------------------------------------------------------------------- /styles/Guepardo.ess: -------------------------------------------------------------------------------- 1 | /* Guepardo Style Sheet ( Inspired by OSX 10.5 color scheme ) 2 | * Name: Guepardo 3 | * Author: Omar Gomez 4 | * License: wxWindows License 5 | */ 6 | 7 | default_style { 8 | fore:#000000; 9 | back:#FCFCFC; 10 | face:%(primary)s; 11 | size:%(size)d; 12 | } 13 | 14 | error_style { 15 | fore:#FFD7D7; 16 | } 17 | 18 | stringeol_style { 19 | fore:#FFFFFF; 20 | back:#4900CC; 21 | face:%(secondary)s; 22 | modifiers:eol bold; 23 | } 24 | 25 | caret_line { 26 | back:#DEEFFF; 27 | } 28 | 29 | comment_style { 30 | fore:#5181AB; 31 | modifiers:italic; 32 | } 33 | 34 | keyword_style { 35 | fore:#0086B5; 36 | modifiers:bold; 37 | } 38 | 39 | keyword3_style { 40 | fore:#d66715; 41 | modifiers:bold; 42 | } 43 | 44 | ideol_style { 45 | fore:#FFFFFF; 46 | back:#4900CC; 47 | face:%(secondary)s; 48 | modifiers:eol bold; 49 | } 50 | 51 | line_num { 52 | fore:#FFFFFF; 53 | back:#5181AB; 54 | face:%(secondary)s; 55 | } 56 | 57 | string_style { 58 | fore:#4900CC; 59 | } 60 | 61 | class_style { 62 | fore:#1CA330; 63 | modifiers:bold; 64 | } 65 | 66 | keyword2_style { 67 | fore:#1ca330; 68 | modifiers:bold; 69 | } 70 | 71 | class2_style { 72 | fore:#0086B5; 73 | modifiers:bold; 74 | } 75 | 76 | number_style { 77 | fore:#5181AB; 78 | } 79 | 80 | pre_style { 81 | fore:#894C24; 82 | modifiers:bold; 83 | } 84 | 85 | decor_style { 86 | fore:#894C24; 87 | modifiers:bold italic; 88 | } 89 | 90 | brace_good { 91 | fore:#FFFFFF; 92 | back:#FF8D03; 93 | modifiers:bold; 94 | } 95 | 96 | char_style { 97 | fore:#4900CC; 98 | } 99 | 100 | brace_bad { 101 | back:#FF0000; 102 | modifiers:bold; 103 | } 104 | 105 | dockey_style { 106 | fore:#0064F3; 107 | modifiers:bold; 108 | } 109 | 110 | -------------------------------------------------------------------------------- /templates/autocomp_mod: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: # 3 | # Purpose: # 4 | # Author: AUTHOR # 5 | # Copyright: (c) 2008 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """ 10 | FILE: 11 | AUTHOR: 12 | LANGUAGE: Python 13 | SUMMARY: 14 | 15 | """ 16 | 17 | __author__ = "" 18 | __svnid__ = "$Id: Exp $" 19 | __revision__ = "$Revision: $" 20 | 21 | #--------------------------------------------------------------------------# 22 | # Dependancies 23 | import sys 24 | 25 | #--------------------------------------------------------------------------# 26 | 27 | class Completer: 28 | """Code completer provider""" 29 | def __init__(self): 30 | """Initiliazes the completer""" 31 | # Key values to activate autocompletion on 32 | self._autocomp_keys = [] 33 | # Character values to stop autocompletion on 34 | self._autocomp_stop = u' ' 35 | # Key values to activate a calltip call on 36 | self._calltip_keys = [] 37 | # List for collecting atoms in 38 | self._collector = [] 39 | 40 | def GetAutoCompKeys(self): 41 | """Returns the list of key codes for activating the 42 | autocompletion. 43 | 44 | """ 45 | if hasattr(self, "_autocomp_keys"): 46 | return self._autocomp_keys 47 | else: 48 | return list() 49 | 50 | def GetAutoCompStops(self): 51 | """Returns a string of characters that should cancel 52 | the autocompletion lookup. 53 | 54 | """ 55 | if hasattr(self, '_autocomp_stop'): 56 | return self._autocomp_stop 57 | else: 58 | return u'' 59 | 60 | def GetCallTipKeys(self): 61 | """Returns the list of keys to activate a calltip on""" 62 | if hasattr(self, '_calltip_keys'): 63 | return self._calltip_keys 64 | else: 65 | return list() 66 | 67 | -------------------------------------------------------------------------------- /templates/plugin_setup: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | ############################################################################### 3 | # Name: # 4 | # Purpose: Setup script for building the PLUGIN_NAME plugin # 5 | # Usage: python setup.py bdist_egg # 6 | # Author: AUTHOR # 7 | # Copyright: (c) 2008 Cody Precord # 8 | # License: wxWindows License # 9 | ############################################################################### 10 | """ 11 | Short description of this plugin 12 | """ 13 | 14 | import sys 15 | try: 16 | from setuptools import setup 17 | except ImportError: 18 | print "You must have setup tools installed in order to build this plugin" 19 | setup = None 20 | 21 | __author__ = "AUTHOR NAME" 22 | if setup != None: 23 | setup( 24 | name='PLUGIN NAME', 25 | version='VERSION STR', 26 | description=__doc__, 27 | author=__author__, 28 | author_email="AUTHOR@SOMEWHERE", 29 | license="wxWindows", 30 | url="http://editra.org", 31 | platforms=["Linux", "OS X", "Windows"], 32 | packages=['PACKAGE_NAME'], 33 | entry_points=''' 34 | [Editra.plugins] 35 | PLUGIN_CLASS = PACKAGE_NAME:PLUGIN_CLASS 36 | ''' 37 | ) 38 | -------------------------------------------------------------------------------- /templates/py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: # 3 | # Purpose: # 4 | # Author: AUTHOR # 5 | # Copyright: (c) 2008 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """ 10 | FILE: 11 | AUTHOR: 12 | LANGUAGE: Python 13 | SUMMARY: 14 | 15 | """ 16 | 17 | __author__ = "" 18 | __svnid__ = "$Id: Exp $" 19 | __revision__ = "$Revision: $" 20 | 21 | #--------------------------------------------------------------------------# 22 | # Dependancies 23 | 24 | #--------------------------------------------------------------------------# 25 | # Globals 26 | 27 | #--------------------------------------------------------------------------# 28 | 29 | -------------------------------------------------------------------------------- /templates/syntax_mod: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: # 3 | # Purpose: # 4 | # Author: AUTHOR # 5 | # Copyright: (c) 2009 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """ 10 | FILE: 11 | AUTHOR: 12 | SUMMARY: 13 | Lexer configuration module for 14 | 15 | """ 16 | 17 | __author__ = "" 18 | __svnid__ = "$Id: Exp $" 19 | __revision__ = "$Revision: $" 20 | 21 | #-----------------------------------------------------------------------------# 22 | # Imports 23 | import wx.stc as stc 24 | 25 | # Local Imports 26 | import synglob 27 | import syndata 28 | 29 | #-----------------------------------------------------------------------------# 30 | 31 | #---- Keyword Definitions ----# 32 | 33 | #---- End Keyword Definitions ----# 34 | 35 | #---- Syntax Style Specs ----# 36 | SYNTAX_ITEMS = [] 37 | 38 | #---- Extra Properties ----# 39 | 40 | #-----------------------------------------------------------------------------# 41 | 42 | class SyntaxData(syndata.SyntaxDataBase): 43 | def __init__(self, langid): 44 | syndata.SyntaxDataBase.__init__(self, langid) 45 | 46 | # Setup 47 | self.SetLexer(stc.STC_LEX_XXXX) 48 | 49 | def GetKeywords(self): 50 | """Returns Specified Keywords List""" 51 | return list() 52 | 53 | def GetSyntaxSpec(self): 54 | """Syntax Specifications""" 55 | return SYNTAX_ITEMS 56 | 57 | def GetProperties(self): 58 | """Returns a list of Extra Properties to set""" 59 | return list() 60 | 61 | def GetCommentPattern(self): 62 | """Returns a list of characters used to comment a block of code""" 63 | return list() 64 | -------------------------------------------------------------------------------- /templates/unittest: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: # 3 | # Purpose: # 4 | # Author: AUTHOR # 5 | # Copyright: (c) 2008 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | __author__ = "" 10 | __svnid__ = "$Id: Exp $" 11 | __revision__ = "$Revision: $" 12 | 13 | #-----------------------------------------------------------------------------# 14 | # Imports 15 | import os 16 | import sys 17 | import unittest 18 | 19 | # Module to Test 20 | sys.path.insert(0, os.path.abspath("../../src")) 21 | 22 | 23 | #-----------------------------------------------------------------------------# 24 | # Test Class 25 | 26 | class TestMYTEST(unittest.TestCase): 27 | def setUp(self): 28 | pass 29 | 30 | def tearDown(self): 31 | pass 32 | 33 | #-----------------------------------------------------------------------------# 34 | 35 | if __name__ == '__main__': 36 | unittest.main() 37 | -------------------------------------------------------------------------------- /tests/controls/__init__.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: __init__.py # 3 | # Purpose: Eclib test package # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2009 Cody Precord # 6 | # Licence: wxWindows Licence # 7 | ############################################################################### 8 | 9 | """ 10 | Editra Control Library Test Package 11 | 12 | """ 13 | 14 | __author__ = "Cody Precord " 15 | __svnid__ = "$Id: __init__.py 61806 2009-09-02 01:31:01Z CJP $" 16 | __revision__ = "$Revision: 61806 $" 17 | -------------------------------------------------------------------------------- /tests/syntax/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/tests/syntax/.DS_Store -------------------------------------------------------------------------------- /tests/syntax/68k_assembly.68k: -------------------------------------------------------------------------------- 1 | ; Syntax Test file for 68k Assembly code 2 | ; Some comments about this file 3 | .D0 00000000 4 | MS 2100 00000002 5 | MM 2000;DI 6 | LEA.L $002100,A1 7 | MOVE.L #2,-(A1) 8 | BSR $00002050 9 | 10 | MM 2050;DI 11 | MOVE.L (A1)+,D1 12 | MOVE.L (A1),D2 13 | ADD.L D1,D2 14 | MOVE.L D2,D0 15 | RTS 16 | 17 | .D0 00000000 18 | .D3 00000100 19 | .D4 00000200 20 | .D5 00000300 21 | MM 2000;DI 22 | CMP D3,D4 23 | BGE $002100 24 | CMP D3,D5 25 | BGE $002150 26 | MOVE.L D3,D0 27 | . 28 | MM 2100;DI 29 | CMP D4,D5 30 | BGE $002150 31 | MOVE.L D4,D0 32 | . 33 | MM 2150;DI 34 | MOVE.L D5,D0 35 | . 36 | 37 | .PC 2000 38 | TR -------------------------------------------------------------------------------- /tests/syntax/Xtext.xtext: -------------------------------------------------------------------------------- 1 | /* 2 | Syntax Highlighting test file for Xtext language. 3 | */ 4 | grammar simpleStateMachine with someOtherGrammar hidden(WS, ML_COMMENT, SL_COMMENT) 5 | import "http://www.eclipse.org/emf/2002/Ecore" as ecore 6 | generate simpleStateMachine "http://www.simplestatemachine.com/simpleStateMachine" 7 | 8 | /* This is multiline comment with 9 | a nested comment. 10 | /* Nested 11 | comment 12 | */ 13 | */ 14 | 15 | // Terminals 16 | terminal ML_COMMENT : '/*' -> '*/'; 17 | terminal SL_COMMENT : '//' !('\n'|'\r')* ('\r'? '\n')?; 18 | 19 | terminal WS : (' '|'\t'|'\r'|'\n')+; 20 | 21 | // Parser Rules 22 | Machine: 23 | "machine" name=ID ";" 24 | (states+=State)* // testing CrossRef support in codebrowser 25 | (transitions+=Transition)* 26 | ; 27 | 28 | State: 29 | "state" name=ID ";" 30 | ; 31 | 32 | Transition: 33 | "for" input=STRING oldState=[State] "->" newState=[State] 34 | ("out" output=STRING)? 35 | ";" 36 | ; 37 | 38 | // Enumeration 39 | enum EnumerationTest: 40 | first="FIRST"| 41 | second="SECOND" | 42 | third="THIRD" 43 | ; 44 | -------------------------------------------------------------------------------- /tests/syntax/actionscript.as: -------------------------------------------------------------------------------- 1 | // ActionScript Syntax Highlighting Test File 2 | // Comments are like this 3 | /** Multi-line comments are like these lines here 4 | * @summary Documentation keywords are like this 5 | */ 6 | 7 | // Hello World ActionScript 2.0 8 | class com.example.Greeter extends MovieClip 9 | { 10 | public function Greeter() 11 | { 12 | var txtHello:TextField = this.createTextField("txtHello", 0, 0, 0, 100, 100); 13 | txtHello.text = "Hello World"; 14 | } 15 | } 16 | 17 | // Hellow World ActionScript 3.0 18 | package com.example 19 | { 20 | import flash.text.TextField; 21 | import flash.display.Sprite; 22 | 23 | public class Greeter extends Sprite 24 | { 25 | public function Greeter() 26 | { 27 | var txtHello:TextField = new TextField(); 28 | txtHello.text = "Hello World"; 29 | addChild(txtHello); 30 | } 31 | } 32 | } 33 | 34 | // Some Variable Definitions 35 | var item1:String="ABC"; 36 | var item2:Boolean=true; 37 | var item3:Number=12 38 | var item4:Array=["a","b","c"]; 39 | -------------------------------------------------------------------------------- /tests/syntax/ada.adb: -------------------------------------------------------------------------------- 1 | -- Syntax Highlighting test file for Ada 2 | -- Some Comments about this file 3 | pragma Name (Parameter_List); 4 | with Ada.Text_IO; 5 | 6 | procedure Hello is 7 | begin 8 | Ada.Text_IO.Put_Line("Hello, world!"); 9 | Ada.Text_IO.Put_Line("Unclosed string); 10 | end Hello; 11 | 12 | My_Number := 1; 13 | _Ilegal_Identifier := 'a'; 14 | -------------------------------------------------------------------------------- /tests/syntax/apache_conf.conf: -------------------------------------------------------------------------------- 1 | ## Syntax Highlighting Test File for Apache Configuration Files 2 | ## Comment line 3 | 4 | # Directive and Parameter 5 | ServerType standalone 6 | 7 | # Directive and String 8 | ServerRoot "/usr" 9 | 10 | # Directive and Number 11 | Timeout 300 12 | 13 | # Directive and IP number 14 | Listen 12.34.56.78:80 15 | 16 | # Directive and Extension 17 | AccessFileName .htaccess 18 | 19 | # Some Extra Examples 20 | DefaultType text/plain 21 | HostnameLookups Off 22 | ErrorLog "/private/var/log/httpd/error_log" 23 | LogLevel warn 24 | 25 | 26 | BrowserMatch "Mozilla/2" nokeepalive 27 | BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 28 | BrowserMatch "RealPlayer 4\.0" force-response-1.0 29 | BrowserMatch "Java/1\.0" force-response-1.0 30 | BrowserMatch "JDK/1\.0" force-response-1.0 31 | 32 | -------------------------------------------------------------------------------- /tests/syntax/bash_shell_script.sh: -------------------------------------------------------------------------------- 1 | # Syntax Highlighting Test File for Bash 2 | # Comment Line 3 | 4 | # Test Assignment 5 | BLUE="" 6 | CYAN="" 7 | GREEN="" 8 | RED="" 9 | YELLOW="" 10 | OFF="" 11 | 12 | echo "${YELLOW}**${OFF} Hello World in Yellow ${YELLOW}**${OFF}" 13 | sleep 2 14 | 15 | # Test Scalar 16 | HELLO=$(Hello) 17 | HELLO2=${Hello} 18 | HELLO3=`Hello` 19 | 20 | # Test Loop/Condition 21 | if [ 'a' == 'a' ]; then 22 | for file in $( ls ); do 23 | echo $file 24 | done 25 | fi 26 | 27 | # Test Function Definition 28 | function quit { 29 | exit 30 | } 31 | 32 | # Here Statement 33 | cat < 2 | 3 | 4 | 5 | function helloWorld() { 6 | var greeting = "Hello World!"; 7 | return greeting; 8 | } 9 | 10 | 11 | #helloWorld()# 12 | 13 | 14 | 15 | 16 | 17 | 18 |

The first position of #Foo1# in #Foo2# is #Find(Foo1,Foo2)#

19 |
20 | 21 | /** 22 | * Returns a list of all factors for a given 23 | * positive integer. 24 | * 25 | * @param integer Any non negative integer greater 26 | * than or equal to 1. 27 | * @return Returns a comma delimited list 28 | * of values. 29 | * @author Rob Brooks-Bilson (rbils@amkor.com) 30 | * @version 1.1, September 6, 2001 31 | */ 32 | function factor(integer) 33 | { 34 | Var i=0; 35 | Var Factors = ""; 36 | for (i=1; i LTE integer/2; i=i+1) { 37 | if (Int(integer/i) EQ integer/i) { 38 | Factors = ListAppend(Factors, i); 39 | } 40 | } 41 | Return ListAppend(Factors, integer); 42 | } 43 | 44 | -------------------------------------------------------------------------------- /tests/syntax/cpp.cpp: -------------------------------------------------------------------------------- 1 | /** Syntax Highlighting test file for C++ 2 | * \brief Doxygen tag highlighting 3 | */ 4 | #include 5 | #include 6 | 7 | using namespace std; 8 | 9 | int main(void) 10 | { 11 | cout << "\nHello World" << endl; 12 | cout << "\nUnclosed String << endl; 13 | 14 | // One line comment 15 | int a = 0; 16 | 17 | exit(a); 18 | } 19 | 20 | int add(int x, int y) 21 | { 22 | return x + y; 23 | } 24 | 25 | void TestClass::Foo(int &nVal) 26 | { 27 | nVal++; 28 | } 29 | 30 | // EOF 31 | -------------------------------------------------------------------------------- /tests/syntax/csharp.cs: -------------------------------------------------------------------------------- 1 | // C# Syntax Highlighting Test File 2 | // Comments are like this 3 | /** Multiline comments are like this 4 | * @summary <- Documentation Keyword 5 | * \brief <- Doxygen style keyword 6 | */ 7 | 8 | using System; 9 | 10 | #region Foo 11 | class Foo 12 | { 13 | void Create() {} 14 | } 15 | #endregion Foo 16 | 17 | // Hello World 18 | class HelloClass 19 | { 20 | static void Main() 21 | { 22 | System.Console.WriteLine("Hello, world!"); 23 | } 24 | 25 | public static void PrintPlusOne(int x) 26 | { 27 | System.Console.WriteLine(x + 1); 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /tests/syntax/d.d: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting test file for D programming language 2 | // A single line comment 3 | /* A multi-line comment about this file. 4 | * Adopted from http://en.wikipedia.org/wiki/D_%28programming_language%29 5 | */ 6 | 7 | import std.stdio; 8 | int main(char[][] args) 9 | { 10 | writefln("Hello World"); 11 | 12 | // Strings are denoted as a dynamic array of chars 'char[]' 13 | // auto type inference and built-in foreach 14 | foreach(argc, argv; args) 15 | { 16 | auto cl = new CmdLin(argc, argv); // OOP is supported 17 | writefln(cl.argnum, cl.suffix, " arg: %s", cl.argv); // user-defined class properties. 18 | 19 | delete cl; // Garbage Collection or explicit memory management - your choice 20 | } 21 | 22 | // Nested structs, classes and functions 23 | struct specs 24 | { 25 | // all vars automatically initialized to 0 at runtime 26 | int count, allocated; 27 | // however you can choose to avoid array initialization 28 | int[10000] bigarray = void; 29 | } 30 | 31 | specs argspecs(char[][] args) 32 | // Optional (built-in) function contracts. 33 | in 34 | { 35 | assert(args.length > 0); // assert built in 36 | } 37 | out(result) 38 | { 39 | assert(result.count == CmdLin.total); 40 | assert(result.allocated > 0); 41 | } 42 | body 43 | { 44 | specs* s = new specs; 45 | // no need for '->' 46 | s.count = args.length; // The 'length' property is number of elements. 47 | s.allocated = typeof(args).sizeof; // built-in properties for native types 48 | foreach(arg; args) 49 | s.allocated += arg.length * typeof(arg[0]).sizeof; 50 | return *s; 51 | } 52 | 53 | // built-in string and common string operations, eg. '~' is concatenate. 54 | char[] argcmsg = "argc = %d"; 55 | char[] allocmsg = "allocated = %d"; 56 | writefln(argcmsg ~ ", " ~ allocmsg, 57 | argspecs(args).count,argspecs(args).allocated); 58 | return 0; 59 | } 60 | -------------------------------------------------------------------------------- /tests/syntax/diff_file.diff: -------------------------------------------------------------------------------- 1 | --- Syntax Highlighting Test File for Diff results 2 | --- Comment Lines are like this 3 | --- cpp.cpp 2007-06-26 07:14:22.000000000 -0500 4 | +++ hello_diff.cpp 2007-08-06 17:01:47.000000000 -0500 5 | @@ -2,24 +2,29 @@ 6 | * 7 | */ 8 | #include 9 | -#include 10 | 11 | using namespace std; 12 | 13 | int main(void) 14 | { 15 | - cout << "\nHello World" << endl; 16 | + cout << "\nHello World!" << endl; 17 | cout << "\nUnclosed String << endl; 18 | 19 | // One line comment 20 | int a = 0; 21 | - 22 | - exit(a); 23 | + cout << add(a, 22) << endl; 24 | } 25 | 26 | -int add(x, y) 27 | +// Add two numbers 28 | +int add(int x, int y) 29 | { 30 | return x + y; 31 | } 32 | 33 | +// Subtract two numbers 34 | +int sub(int x, int y) 35 | +{ 36 | + return x - y; 37 | +} 38 | + 39 | // EOF -------------------------------------------------------------------------------- /tests/syntax/django.django: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {% block head_title %}mysite.com{% endblock %} 8 | 9 | 10 | 11 | 12 | 13 | 14 | {% extends "base.html" %} 15 | {% block head_title %}{{ object.title|title }} &ndash; {{ block.super }}{% endblock %} 16 | 17 | 18 | 19 | 20 | My Test Entry &ndash; mysite.com 21 | 22 | 23 |

Hello

24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/syntax/dos_batch_script.bat: -------------------------------------------------------------------------------- 1 | :: Syntax Highlighting Test File for Dos Batch Scripts 2 | :: Comment Line 3 | 4 | :BEGIN 5 | set HELLO="WORLD" 6 | set WORLD="HELLO" 7 | set HELLOWORLD="%WORLD% %HELLO%" 8 | 9 | if "%1" == "/?" goto HELP 10 | if "%1" == "go" goto EXECUTE 11 | 12 | :HELP 13 | echo . 14 | echo Here is test file to show some dos batch highlighting 15 | echo . 16 | goto END 17 | 18 | :EXECUTE 19 | echo . 20 | echo %HELLOWORLD% 21 | echo . 22 | 23 | :END 24 | -------------------------------------------------------------------------------- /tests/syntax/dot.dot: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting Test file for DOT 2 | // Some Comments about this file 3 | // Sample graphviz DOT file from 4 | // http://www.graphviz.org/Gallery/directed/cluster.html 5 | 6 | digraph "Example" { 7 | 8 | subgraph cluster_0 { 9 | style=filled; 10 | color=lightgrey; 11 | node [style=filled,color=white]; 12 | a0 -> a1 -> a2 -> a3; 13 | label = 'process #1'; 14 | } 15 | 16 | subgraph cluster_1 { 17 | node [style=filled]; 18 | b0 -> b1 -> b2 -> b3; 19 | label = "process #2"; 20 | color=blue 21 | } 22 | begin -> a0; 23 | begin -> b0; 24 | a1 -> b3; 25 | b2 -> a3; 26 | a3 -> a0; 27 | a3 -> end; 28 | b3 -> end; 29 | 30 | begin [shape=Mdiamond]; 31 | end [shape=Msquare]; 32 | } 33 | -------------------------------------------------------------------------------- /tests/syntax/dsp56k_assembly.56k: -------------------------------------------------------------------------------- 1 | ;***************************************************************************** 2 | ; DSP56K Highlighting Test File 3 | ; Comments look like this 4 | ;***************************************************************************** 5 | PAGE 110,60,1,1 6 | TABS 4 7 | ;***************************************************************************** 8 | ; DEFINITIONS & POINTERS 9 | ;***************************************************************************** 10 | START EQU $000100 ; program start location 11 | SERIAL EQU $2 ; serial number location 12 | 13 | TXD EQU $FFFFBC ; ESSI0 Transmit Data Register 0 14 | RXD EQU $FFFFB8 ; ESSI0 Receive Data Register 15 | SSISR EQU $FFFFB7 ; ESSI0 Status Register 16 | CRB EQU $FFFFB6 ; ESSI0 Control Register B 17 | CRA EQU $FFFFB5 ; ESSI0 Control Register A 18 | PCRC EQU $FFFFBF ; Port C (ESSI_0) control register 19 | PCTL EQU $FFFFFD ; PLL control register 20 | TXREG EQU $FFFF89 ; external TX register 21 | RXREG EQU $FFFF8A ; external RX register 22 | 23 | PDRB EQU $FFFFC9 ; Port B (HOST) GPIO data 24 | PRRB EQU $FFFFC8 ; Port B (HOST) GPIO direction 25 | PCRB EQU $FFFFC4 ; Port B (HOST) control register 26 | 27 | PCRE EQU $FFFF9F ; Port E (SCI) control register 28 | PRRE EQU $FFFF9E ; Port E (SCI) data direction 29 | PDRE EQU $FFFF9D ; Port E (SCI) data 30 | 31 | 32 | -------------------------------------------------------------------------------- /tests/syntax/editra_style_sheet.ess: -------------------------------------------------------------------------------- 1 | /* Syntax Highlighting Test File for Editra Style Sheets 2 | * Comments are like this 3 | */ 4 | 5 | default_style { 6 | fore: #FFFFFF; 7 | back: #000000; 8 | face: %(mono)s; 9 | size: %(size)d; 10 | } 11 | 12 | keyword_style { 13 | fore: #A52B2B bold; 14 | back: #F6F6F6; 15 | size: %(size)d; 16 | } 17 | 18 | /* Definition with a bad attribute size5 */ 19 | class_style { 20 | fore: #2E8B57 bold; 21 | back: #F6F6F6; 22 | size5: %(size)d; 23 | } 24 | -------------------------------------------------------------------------------- /tests/syntax/edje.edc: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting test file for Edje 2 | // Some comments about this file 3 | /******************************************************************** 4 | * Multi line comments are like this. 5 | ********************************************************************/ 6 | #define FRAME LOSSY 60 7 | 8 | images { 9 | image: "eracnid.png" LOSSY 80; 10 | image: "shadow.png" COMP; 11 | image: "E-wavy_000001.png" FRAME; 12 | image: "E-wavy_000002.png" FRAME; 13 | image: "E-wavy_000003.png" FRAME; 14 | } 15 | 16 | collections { 17 | group { 18 | name: "desktop/background"; 19 | parts { 20 | part { 21 | name: "background_image"; 22 | mouse_events: 0; 23 | description { 24 | state: "default" 0.0; 25 | align: 0.5 0.5; 26 | image { 27 | normal: "eracnid.png"; 28 | } 29 | } 30 | } 31 | part { 32 | name: "logo"; 33 | mouse_events: 0; 34 | description { 35 | aspect: 3.33 3.33; 36 | state: "default" 0.0; 37 | min: 112 148; 38 | max: 200 269; 39 | align: 1.0 1.0; 40 | rel1 { 41 | relative: 0.796 0.355; 42 | offset: 0 0; 43 | to, "background_image"; 44 | } 45 | rel2 { 46 | relative: 0.796 0.355; 47 | offset: 0 0; 48 | to, "background_image"; 49 | } 50 | image { 51 | normal: "E-wavy_000001.png"; 52 | tween: "E-wavy_000002.png"; 53 | tween: "E-wavy_000003.png"; 54 | } 55 | } 56 | } 57 | } 58 | programs { 59 | program { 60 | name: "logo_animate"; 61 | signal: "show"; 62 | source: ""; 63 | action: STATE_SET "default" 0.0; 64 | transition: LINEAR 4.0; 65 | target: "logo"; 66 | after: "logo_animate"; 67 | } 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /tests/syntax/eiffel.e: -------------------------------------------------------------------------------- 1 | -- Syntax Highlighting Test File for Eiffel 2 | -- Some Comments about this file 3 | 4 | class 5 | HELLO_WORLD 6 | create 7 | make 8 | feature 9 | make 10 | do 11 | io.put_string ("Hello, world!") 12 | io.put_new_line 13 | io.put_string('Unclosed String 14 | end 15 | end 16 | 17 | -- Run the HelloWorld program 18 | 19 | program hello_prog 20 | 21 | root 22 | HELLO_WORLD: "make" 23 | cluster 24 | "./" 25 | end 26 | include "$EIFFEL_S/library/lib.pdl" 27 | end -- hello_prog 28 | -------------------------------------------------------------------------------- /tests/syntax/erlang.erl: -------------------------------------------------------------------------------- 1 | %% Syntax Highlighting Test file for Erlang 2 | %% Some comments about this file 3 | 4 | %% quicksort:qsort(List) 5 | %% Sort a list of items 6 | -module(quicksort). 7 | -export([qsort/1]). 8 | 9 | qsort([]) -> []; 10 | qsort([Pivot|Rest]) -> 11 | qsort([ X || X <- Rest, X < Pivot]) ++ [Pivot] ++ qsort([ Y || Y <- Rest, Y >= Pivot]). 12 | 13 | %% --------------------------------------------------------------------- %% 14 | %% Sort a list by length 15 | -module(listsort). 16 | -export([by_length/1]). 17 | 18 | by_length(Lists) -> 19 | F = fun(A,B) when is_list(A), is_list(B) -> 20 | length(A) < length(B) 21 | end, 22 | qsort(Lists, F). 23 | 24 | qsort([], _)-> []; 25 | qsort([Pivot|Rest], Smaller) -> 26 | qsort([ X || X <- Rest, Smaller(X,Pivot)], Smaller) 27 | ++ [Pivot] ++ 28 | qsort([ Y ||Y- Rest, not(Smaller(Y, Pivot))], Smaller). 29 | 30 | -------------------------------------------------------------------------------- /tests/syntax/ferite.fe: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting Test File for Ferite 2 | // Comments are like this 3 | /** Multiline comments are like this 4 | * @summary Documentation keyword 5 | * \brief Another Doc keyword 6 | */ 7 | 8 | // Hello World 9 | uses "console"; 10 | Console.println( "Hello World" ); 11 | Console.println( "Unclosed String 12 | 13 | // Types 14 | number a; 15 | string b; 16 | array c; 17 | 18 | a = 2; 19 | b = "2"; 20 | c = [ a, b ]; 21 | 22 | // Function 23 | function f( number x ) { 24 | if( x > 1 ) { 25 | return f( x - 1 ) * 2; 26 | } 27 | return 1; 28 | } 29 | Console.println( f(10) ); 30 | 31 | // Class 32 | class A { 33 | string value; 34 | 35 | function constructor() { 36 | .value = "Class.A"; 37 | } 38 | 39 | function f() { 40 | return .value; 41 | } 42 | } 43 | 44 | // Some Namespace defs 45 | namespace A { 46 | function f() { 47 | return "A.f"; 48 | } 49 | } 50 | 51 | namespace modifies A { 52 | function g() { 53 | return "A.g"; 54 | } 55 | } 56 | 57 | // Protocols 58 | protocol C { 59 | function getX(); 60 | function getY(); 61 | } 62 | 63 | class A implements C { 64 | function getX() { return "X"; } 65 | function getY() { return "Y"; } 66 | } 67 | -------------------------------------------------------------------------------- /tests/syntax/flagship.prg: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting test file for Flagship/XBase programming languages 2 | // Some comments about this file 3 | /* A multline comment about some stuff in this 4 | * file. 5 | */ 6 | 7 | // Hello World in Clipper 8 | ? "Hello World!" 9 | 10 | 11 | USE address ALIAS adr SHARED NEW 12 | SET COLOR TO "W+/B,GR+/R,W/B,W/B,GR+/BG" 13 | cls 14 | @ 1, 0 SAY "Id No. " GET adr->IdNum PICT "999999" VALID IdNum > 0 15 | @ 3, 0 SAY "Company" GET adr->Company 16 | @ 3,35 SAY "Branch" GET adr->Branch WHEN !empty(adr->Company) 17 | @ 4, 0 SAY "Name " GET adr->Name VALID !empty(adr->Name) 18 | @ 4,35 SAY "First " GET adr->First 19 | @ 6, 0 SAY "Country" GET adr->Country PICTURE "@!" 20 | @ 8, 0 SAY "Zip " GET adr->Zip PICT "@!" VALID !empty(adr->Zip) 21 | @ 9, 0 SAY "City " GET adr->City 22 | @ 10, 0 SAY "Street " GET adr->Street 23 | READ 24 | -------------------------------------------------------------------------------- /tests/syntax/forth.4th: -------------------------------------------------------------------------------- 1 | \ Test file for Forth Syntax 2 | \ Comments are like this 3 | 10 constant ten 4 | : .hello ( -- ) 5 | s" Hello World" type [char] ! emit ; 6 | : hello ( flag -- ) 7 | ?dup if .hello then drop ; 8 | hello 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/syntax/fortran_77.for: -------------------------------------------------------------------------------- 1 | * Fortran 77 Syntax Test File 2 | * Some Comments about this file 3 | 4 | * Hello World 5 | 6 | PROGRAM HELLOW 7 | PRINT '(A)', 'Hello, world' 8 | STOP 9 | END 10 | 11 | * euclid.f (FORTRAN 77) 12 | * Find greatest common divisor using the Euclidean algorithm 13 | 14 | PROGRAM EUCLID 15 | PRINT *, 'A?' 16 | READ *, NA 17 | IF (NA.LE.0) THEN 18 | PRINT *, 'A must be a positive integer.' 19 | STOP 20 | END IF 21 | PRINT *, 'B?' 22 | READ *, NB 23 | IF (NB.LE.0) THEN 24 | PRINT *, 'B must be a positive integer.' 25 | STOP 26 | END IF 27 | PRINT *, 'The GCD of', NA, ' and', NB, ' is', NGCD(NA, NB), '.' 28 | STOP 29 | END 30 | 31 | FUNCTION NGCD(NA, NB) 32 | IA = NA 33 | IB = NB 34 | 1 IF (IB.NE.0) THEN 35 | ITEMP = IA 36 | IA = IB 37 | IB = MOD(ITEMP, IB) 38 | GOTO 1 39 | END IF 40 | NGCD = IA 41 | RETURN 42 | END 43 | -------------------------------------------------------------------------------- /tests/syntax/fortran_95.f95: -------------------------------------------------------------------------------- 1 | ! Fortran 95 Syntax Test File 2 | ! Some comments about this file 3 | 4 | ! Hello World 5 | program HelloWorld 6 | write (*,*) 'Hello, world!' ! This is an inline comment 7 | end program HelloWorld 8 | 9 | program HelloWorld2 10 | ihello = 0 11 | 1 if (ihello.NE.10) ! This line shows the label style 12 | write (*,*) "Hello, World2!" 13 | ihello = ihello + 1 14 | goto 1 15 | end if 16 | end program HelloWord2 17 | 18 | !---------------------------------------------------------- 19 | subroutine Swap_Real(a1, a2) 20 | 21 | implicit none 22 | 23 | ! Input/Output 24 | real, intent(inout) :: a1(:), a2(:) 25 | 26 | ! Locals 27 | integer :: lb(1), & !Lower bound 28 | ub(1) !Upper bound 29 | integer i 30 | real a 31 | 32 | ! Get bounds 33 | lb = lbound(a1) 34 | ub = ubound(a1) 35 | 36 | ! Swap 37 | do i = lb(1), ub(1) 38 | a = a1(i) 39 | a1(i) = a2(i) 40 | a2(i) = a 41 | end do 42 | 43 | end subroutine Swap_Real 44 | 45 | !---------------------------------------------------------- 46 | -------------------------------------------------------------------------------- /tests/syntax/glsl.glsl: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting Test File for GLSL 2 | // Comment Text 3 | 4 | #define MAX_JOINT_NUM 36 5 | #define MAX_LIGHT_NUM 8 6 | 7 | uniform mat4 JointTransform[MAX_JOINT_NUM]; 8 | 9 | void main() 10 | { 11 | int index; 12 | float dist; 13 | mat4 ModelTransform = gl_ModelViewProjectionMatrix; 14 | index = int(gl_Color.r * 255.99); 15 | mat4 vertTran = JointTransform[index - 1]; 16 | index = int(gl_Color.g * 255.99); 17 | if(index > 0) 18 | vertTran += JointTransform[index - 1]; 19 | } 20 | -------------------------------------------------------------------------------- /tests/syntax/gui4cli.gui: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting test file for Gui4Cli 2 | // Some Comments about this file 3 | // Note lexer only works correctly with CRLF eol chars 4 | 5 | WINDOW 10 10 180 20 'IconBar' 6 | Winattr style clear/topmost/move/remsize/noborder/border/tool 7 | winattr background color 200/200/220 8 | 9 | // Control 10 | if $test = 0 11 | cutvar buff cut char $wrapWidth buff2 12 | else 13 | cutvar buff cut char $test buff2 14 | endif 15 | 16 | // Event 17 | xOnKey F1 18 | run :somthing 19 | lv add $somthing 20 | add 21 | -------------------------------------------------------------------------------- /tests/syntax/haskell.hs: -------------------------------------------------------------------------------- 1 | -- Syntax Highlighting test file for Haskell 2 | -- Some comments about this file 3 | 4 | -- Hello World in Haskell 5 | putStrLn "Hello, Haskell" 6 | 7 | -- Simple do structure 8 | do putStrLn "What is 2 + 2?" 9 | x <- readLn 10 | if x == 4 11 | then putStrLn "You're right!" 12 | else putStrLn "You're wrong!" 13 | 14 | -- Class def 15 | class Num a where 16 | (+) :: a -> a -> a 17 | negate :: a -> a 18 | 19 | -- Data Declaration 20 | data Set a = NilSet 21 | | ConsSet a (Set a) 22 | 23 | -- Import statement 24 | import somthing 25 | 26 | -- Instance 27 | instance Num Int where 28 | x + y = addInt x y 29 | negate x = negateInt x 30 | 31 | -- Module 32 | module Tree ( Tree(Leaf,Branch), fringe ) where 33 | 34 | data Tree a = Leaf a | Branch (Tree a) (Tree a) 35 | 36 | fringe :: Tree a -> [a] 37 | fringe (Leaf x) = [x] 38 | fringe (Branch left right) = fringe left ++ fringe right 39 | 40 | -------------------------------------------------------------------------------- /tests/syntax/haxe.hx: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting Test File for haXe 2 | // Comments are like this 3 | /* Mulitline comments are like 4 | * this block of text 5 | */ 6 | 7 | // Ints / Floats 8 | 0; 9 | -1234; 10 | 0xFF00; 11 | 123.4; 12 | 13 | // Strings 14 | "Hello World"; 15 | "Unclosed String; 16 | 17 | // Constants 18 | true; 19 | false; 20 | null; 21 | 22 | // Class Def 23 | package my.pack; 24 | 25 | class MyClass { 26 | var id : Int; 27 | static var name : String = "MyString"; 28 | function foo() : Void { 29 | } 30 | static function bar( s : String, v : Bool ) : Void { 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /tests/syntax/html.html: -------------------------------------------------------------------------------- 1 | 2 | <%@ LANGUAGE=VBScript %> 3 | <% OPTION EXPLICIT %> 4 | 5 | <% 6 | Dim sMessage 7 | Dim bIncludeJavaScript 8 | 9 | sMessage = "Hello World" 'This is the message to be displayed 10 | 11 | 'Getting a request value that defines if the javascript part should be included 12 | bIncludeJavaScript = FALSE 13 | If (Request("withJavaScript") = "Y") Then 14 | bIncludeJavaScript = TRUE 15 | End If 16 | %> 17 | 18 | 19 | 20 | 21 | Hello World 22 | 23 | 24 | 32 | 33 | 34 |
35 |

Hello World HTML

36 |

HELLO HELLO HELLO

37 |
38 | 39 | 40 | -------------------------------------------------------------------------------- /tests/syntax/inno_setup_script.iss: -------------------------------------------------------------------------------- 1 | ; Syntax Highlighting Test File for Inno Setup Scripts 2 | ; Some comments about this file 3 | 4 | ; Preprocessor 5 | #pragma verboselevel 9 6 | #define Debug 7 | 8 | ; Sections 9 | [Setup] 10 | AppName=My Program 11 | AppVerName=My Program version 1.5 12 | DefaultDirName={code:MyConst}\My Program 13 | DefaultGroupName=My Program 14 | UninstallDisplayIcon={app}\MyProg.exe 15 | InfoBeforeFile=Readme.txt 16 | OutputDir=userdocs:Inno Setup Examples Output 17 | 18 | [Files] 19 | Source: "MyProg.exe"; DestDir: "{app}"; Check: MyProgCheck; BeforeInstall: BeforeMyProgInstall('MyProg.exe'); AfterInstall: AfterMyProgInstall('MyProg.exe') 20 | Source: "MyProg.chm"; DestDir: "{app}"; Check: MyProgCheck; BeforeInstall: BeforeMyProgInstall('MyProg.chm'); AfterInstall: AfterMyProgInstall('MyProg.chm') 21 | Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme 22 | 23 | [Code] 24 | var 25 | MyProgChecked: Boolean; 26 | MyProgCheckResult: Boolean; 27 | FinishedInstall: Boolean; 28 | 29 | function InitializeSetup(): Boolean; 30 | begin 31 | Result := MsgBox('InitializeSetup:' #13#13 'Setup is initializing. Do you really want to start setup?', mbConfirmation, MB_YESNO) = idYes; 32 | if Result = False then 33 | MsgBox('InitializeSetup:' #13#13 'Ok, bye bye.', mbInformation, MB_OK); 34 | end; 35 | -------------------------------------------------------------------------------- /tests/syntax/issuelist.isl: -------------------------------------------------------------------------------- 1 | ; Syntax Highlighting Test file for IssueList 2 | ; Comments look like this 3 | 4 | + This item is done 5 | - This is still open 6 | ; This is a cancelled item, so it is shown in gray 7 | ? This item still needs to be clarified 8 | There are some questions open to solve it. 9 | In detail: 10 | - Is it too expensive ? 11 | + Can it technically be done ? 12 | 13 | - Technically it is quite challenging, 14 | and some details are yet open. 15 | But can be surely solved. 16 | 17 | So there are some more colors: 18 | 19 | # for maybe something important 20 | . Because blue looks cool 21 | 22 | ~ This could be used for deep-red items or so 23 | 24 | ;;; Local Variables: 25 | ;;; mode: outline 26 | ;;; End: 27 | -------------------------------------------------------------------------------- /tests/syntax/java.java: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting Test File For Java 2 | // Comment Line 3 | 4 | /* 5 | * HelloWorld Using Swing 6 | */ 7 | import javax.swing.*; 8 | 9 | public class HelloWorldSwing { 10 | /** 11 | * Create the GUI and show it. For thread safety, 12 | * this method should be invoked from the 13 | * event-dispatching thread. 14 | */ 15 | private static void createAndShowGUI() { 16 | //Create and set up the window. 17 | JFrame frame = new JFrame("HelloWorldSwing"); 18 | frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 19 | 20 | //Add the ubiquitous "Hello World" label. 21 | JLabel label = new JLabel("Hello World"); 22 | frame.getContentPane().add(label); 23 | 24 | //Display the window. 25 | frame.pack(); 26 | frame.setVisible(true); 27 | 28 | a = 1000; 29 | // unclosed string 30 | System.out.println("test); 31 | } 32 | 33 | public static void main(String[] args) { 34 | //Schedule a job for the event-dispatching thread: 35 | //creating and showing this application's GUI. 36 | javax.swing.SwingUtilities.invokeLater(new Runnable() { 37 | public void run() { 38 | createAndShowGUI(); 39 | } 40 | }); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /tests/syntax/javascript.js: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting Test File for JavaScript 2 | // Some Comments about this file 3 | 4 | function HelloAlert () 5 | { 6 | alert("Hello World!") 7 | } 8 | 9 | function count(to) 10 | { 11 | for (i = 0; i <= to; i++) 12 | { 13 | document.write("The number is " + i) 14 | document.write("
") 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/syntax/kix.kix: -------------------------------------------------------------------------------- 1 | ; Syntax Highighting test file for KIXtart scripts 2 | ; Some comments about this file 3 | 4 | Dim $Type, $S, $J, $R 5 | 6 | If KeyExist("HKCU\Software\Hello") = 1 7 | $Type = Readtype("HKCU\Software\Hello","World") 8 | $R = ReadValue("HKCU\Software\Hello", "World2") 9 | 10 | Select 11 | Case $Type = "Reg_Multi_SZ" 12 | $S = Split($R,"|") 13 | $J = Join($S," ") 14 | Case $Type = "Reg_SZ" 15 | $J = $R 16 | Case 1 17 | @Error = 5 18 | EndSelect 19 | 20 | If $J = "HelloWorld" 21 | ? "We have a match. The string returned was: " $J 22 | Else 23 | ? "No match found. The string returned was: " $J 24 | EndIf 25 | Else 26 | Exit 1 27 | EndIf 28 | -------------------------------------------------------------------------------- /tests/syntax/korn_shell_script.ksh: -------------------------------------------------------------------------------- 1 | # Syntax Highlighting Test File for Korn Shell 2 | # Some comments about this file 3 | 4 | export FRIENDS="Jon Kosuke Bill Sandra" 5 | for FRIEND in ${FRIENDS} 6 | do 7 | # each loop say hello 8 | echo "HELLO " $FRIEND 9 | done 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /tests/syntax/latex.tex: -------------------------------------------------------------------------------- 1 | % Syntax Highlighting Test File For LaTeX 2 | % Some Comments About This File 3 | \documentclass{article} 4 | \title{Lets Say Hello} 5 | \author{Jane Doe} 6 | \date{April 2007} 7 | \begin{document} 8 | \maketitle 9 | Hello world! 10 | \end{document} 11 | -------------------------------------------------------------------------------- /tests/syntax/lisp.lisp: -------------------------------------------------------------------------------- 1 | ; Syntax Highlighting Test File for Lisp 2 | ; Comment Line 3 | 4 | ; Lisp funciton and keyword test 5 | (defpackage :mypackage 6 | (:use :common-lisp :cffi)) 7 | 8 | ; hello version 1 9 | (defun hello-word1 () 10 | (print (list 'HELLO 'WORLD))) 11 | 12 | ; hello version 2 13 | (defun hello-world () 14 | (format t "hello world~%")) 15 | 16 | ; Lets do some factorials too 17 | (defun factorial (N) 18 | (if (= N 1) 19 | 1 20 | (* N (factorial (- N 1))))) 21 | 22 | ; Fibonacci numbers are fun too 23 | (defun fibonacci (N) 24 | (if (or (zerop N) (= N 1)) 25 | 1 26 | (+ (fibonacci (- N 1)) (fibonacci (- N 2))))) 27 | -------------------------------------------------------------------------------- /tests/syntax/lout.lt: -------------------------------------------------------------------------------- 1 | # Lexer Test File for Basser Lout 2 | # http://en.wikipedia.org/wiki/Lout 3 | # Some Comments about this file 4 | 5 | # Use the `doc' document class and its default style. 6 | @SysInclude { doc } 7 | 8 | @Document 9 | @InitialFont { Times Base 10p } 10 | // 11 | 12 | # Beginning of document contents. 13 | @Text @Begin 14 | 15 | # Paragraph with a number of differen't keywords, symbols and strings in it 16 | @PP 17 | Hello Word this is a paragraph. One can easily embed @B { bold } or 18 | @I { italic } text. One can also easily change the style of 19 | text, such as { Helvetica Base } @Font { changing the font 20 | being used } Here is a string @Code "@Font" and a string that 21 | is not closed @Code "@Font. 22 | 23 | @BeginSections 24 | @Section @Title { The First Section } 25 | @Begin 26 | 27 | @PP 28 | This is the content of a section. 29 | 30 | @End @Section 31 | @EndSections 32 | 33 | @End @Text 34 | # End of the document. 35 | -------------------------------------------------------------------------------- /tests/syntax/lua.lua: -------------------------------------------------------------------------------- 1 | -- Lua Syntax Test File 2 | -- Some comments about this file 3 | 4 | -- Hello World Program 5 | print "Hello World" 6 | print "An Open String 7 | 8 | -- Factorial Calculator 9 | function factorial(n) 10 | if n == 0 then 11 | return 1 12 | end 13 | return n * factorial(n - 1) 14 | end 15 | 16 | -- Fibonacci Numbers 17 | fibs = { 1, 1 } 18 | setmetatable(fibs, { 19 | __index = function(name, n) 20 | name[n] = name[n - 1] + name[n - 2] 21 | return name[n] 22 | end 23 | }) 24 | 25 | -- string buffer implementation 26 | function newbuf () 27 | local buf = { 28 | _buf = {}, 29 | clear = function (self) self._buf = {}; return self end, 30 | content = function (self) return table.concat(self._buf) end, 31 | append = function (self, s) 32 | self._buf[#(self._buf) + 1] = s 33 | return self 34 | end, 35 | set = function (self, s) self._buf = {s}; return self end, 36 | } 37 | return buf 38 | end -------------------------------------------------------------------------------- /tests/syntax/makefile.mak: -------------------------------------------------------------------------------- 1 | # Syntax Highlighting Test File for Makefile 2 | # Some more comments about this file 3 | 4 | # Some Identifiers and Preproccessor stuff 5 | !ifndef DEBUG 6 | CFLAGS=-DDEBUG -g $(CFLAGS) 7 | !else 8 | CFLAGS=-Os $(CFLAGS) 9 | !endif 10 | 11 | # Some Targets 12 | helloworld: helloworld.o 13 | cc -o $@ $< 14 | 15 | helloworld.o: helloworld.c 16 | cc -c -o $@ $< 17 | 18 | .PHONY: clean 19 | clean: 20 | rm -f helloworld helloworld.o *~ core 21 | -------------------------------------------------------------------------------- /tests/syntax/mako.mako: -------------------------------------------------------------------------------- 1 | # Syntax Highlighting Test File for Mako Templates 2 | # Comments are like this 3 | 4 | <%def name="label(field, content)"> 5 | 6 | 7 | 8 | <%def name="make_option(opt)"> 9 | <% 10 | import os 11 | from mako.template import Template 12 | 13 | f = open("%s/templates/pages/admin/options/%s" \ 14 | % (c.root, opt)).read() 15 | return Template(f).render() 16 | %> 17 | 18 | -------------------------------------------------------------------------------- /tests/syntax/masm.masm: -------------------------------------------------------------------------------- 1 | ; Syntax Highlighting Test File for MASM 2 | ; Comment Line's are like this 3 | ; Hello world in MASM Assembly 4 | .MODEL tiny 5 | .CODE 6 | ORG 100h 7 | HELLO PROC 8 | MOV AH,09h 9 | LEA DX,msg 10 | INT 21h ;Display Hello World 11 | 12 | MOV AX,4C00h ;Exit to DOS 13 | INT 21h 14 | HELLO ENDP 15 | msg DB 'Hello World$' 16 | END HELLO 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/syntax/matlab.matlab: -------------------------------------------------------------------------------- 1 | % Syntax Highlight Test File for MatLab 2 | % Some comments about this file 3 | 4 | % HelloWorld in MatLab 5 | disp('Hello World'); 6 | 7 | % And now some other randomness to test different color regions 8 | for j=1:4, 9 | j 10 | end 11 | 12 | A = 1; B = []; 13 | if(A|B) disp 'The statement is true', end; 14 | 15 | % Plotting Polynomials 16 | x=[27.7 28 29 30]; 17 | a=[4.1 4.3 4.1]; 18 | b=[0.749 0.503 -0.781]; 19 | c=[0.0 -0.819 -0.470]; 20 | d=[-0.910 0.116 0.157]; 21 | 22 | for i=1:3 23 | ['p_' num2str(i) '(x) = ' num2str(a(i)) ' + ' ... 24 | num2str(b(i)) ' (x - ' num2str(x(i)) ') + ' ... 25 | num2str(c(i)) ' (x - ' num2str(x(i)) ')^2 + ' ... 26 | num2str(d(i)) ' (x - ' num2str(x(i)) ')^3'] 27 | end; 28 | 29 | %--------------------------------------------------------------------- 30 | function y = nev(xx,n,x,Q) 31 | % NEV Neville's algorithm as a function 32 | % y= nev(xx,n,x,Q) 33 | % 34 | % inputs: 35 | % n = order of interpolation (n+1 = # of points) 36 | % x(1),...,x(n+1) x coords 37 | % Q(1),...,Q(n+1) y coords 38 | % xx=evaluation point for interpolating polynomial p 39 | % 40 | % output: p(xx) 41 | for i = n:-1:1 42 | for j = 1:i 43 | Q(j) = (xx-x(j))*Q(j+1) - (xx-x(j+n+1-i))*Q(j); 44 | Q(j) = Q(j)/(x(j+n+1-i)-x(j)); 45 | end 46 | end 47 | 48 | y = Q(1); 49 | 50 | %--------------------------------------------------------------------- 51 | function ssum = geom(a,N) 52 | n=0:N; 53 | ssum = sum(a.^n); 54 | end 55 | -------------------------------------------------------------------------------- /tests/syntax/netwide_assembler.nasm: -------------------------------------------------------------------------------- 1 | ; Syntax Highlighting Test File for NASM 2 | ; Some Comments about this file 3 | ; Hello World in NASM 4 | 5 | section .text 6 | 7 | _start: 8 | push dword len 9 | push dword msg 10 | push dword 1 11 | mov eax, 0x4 12 | call _syscall 13 | add esp, 12 14 | 15 | push dword 0 16 | mov eax, 0x1 17 | call _syscall 18 | 19 | _syscall: 20 | int 0x80 21 | ret 22 | 23 | msg db "Hello World",0xa 24 | len equ $ - msg 25 | -------------------------------------------------------------------------------- /tests/syntax/newlisp.lsp: -------------------------------------------------------------------------------- 1 | ; Syntax Highlighting Test File for newLISP 2 | ; Comments are like this 3 | 4 | (context 'EditraTest) 5 | 6 | (define (hello) 7 | "Says hello." 8 | (println "Hello world")) 9 | 10 | (define (EditraTest:EditraTest substance (times 10)) 11 | (let ((n times)) 12 | (while (> n 0) 13 | (println (format "%d bottles of %s on the wall" n (string substance))) 14 | (dec 'n))) 15 | (println "Time to get to the " substance " store!")) 16 | 17 | (context 'MAIN) 18 | 19 | (dolist (substance '("beer" "apple juice" "spam")) 20 | (EditraTest substance) 21 | (println)) 22 | 23 | -------------------------------------------------------------------------------- /tests/syntax/nonmem_control_stream.ctl: -------------------------------------------------------------------------------- 1 | $PROB theophylline pharmacodynamics standard control stream 2 | $DATA theopd.dat IGNORE # 3 | $INPUT ID TIME THEO AGE WT GEND RACE DIAG PEFR=DV 4 | $ESTIM PRINT=1 POSTHOC 5 | MSFO=theopd.msf 6 | $COV 7 | $THETA (0,150.,) ;popE0 1 8 | $THETA (0,200.,) ;popEMAX 2 9 | $THETA (.001,10,) ;popEC50 3 10 | $OMEGA 0.5 ;etaE0 1 11 | $OMEGA 0.5 ;etaEMAX 2 12 | $OMEGA 0.5 ;etaEC50 3 13 | $SIGMA 100 ;errSD 1 14 | $PRED 15 | E0=THETA(1)*EXP(ETA(1)) 16 | EMAX=THETA(2)*EXP(ETA(2)) 17 | EC50=THETA(3)*EXP(ETA(3)) 18 | Y = E0 + EMAX*THEO/(THEO+EC50) + ERR(1) 19 | $TABLE ID TIME THEO AGE WT GEND RACE DIAG 20 | E0 EMAX EC50 Y 21 | NOPRINT ONEHEADER FILE=theopd.fit 22 | -------------------------------------------------------------------------------- /tests/syntax/nullsoft_installer_script.nsi: -------------------------------------------------------------------------------- 1 | ; Syntax Highlighting Test File for NSIS 2 | ; Comments are Like this 3 | # Comments can also be like this 4 | 5 | ; Function and String 6 | !define PRODUCT_NAME "HelloWorld" 7 | 8 | ; Function and Label 9 | SetCompressor lzma 10 | 11 | ; Section Definition 12 | Section "MainSection" SEC01 13 | SetOutPath "$INSTDIR" 14 | SetOverwrite try 15 | 16 | SectionEnd 17 | 18 | ; Section, Function, Variable, String 19 | Section -Post 20 | WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" 21 | SectionEnd 22 | 23 | ; Function Definition 24 | Function LaunchHello 25 | Exec '"$INSTDIR\hello.exe"' 26 | FunctionEnd 27 | -------------------------------------------------------------------------------- /tests/syntax/objective_c.mm: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting Test File for Objective C 2 | // Comments are like this 3 | /* Multi line comments are like 4 | * this 5 | */ 6 | 7 | // Hello World 8 | #import 9 | 10 | int main( int argc, const char *argv[] ) { 11 | printf( "Hello World\n" ); 12 | printf( "Unclosed string ); 13 | return 0; 14 | } 15 | 16 | // Interface 17 | #import 18 | 19 | @interface Fraction: NSObject { 20 | int numerator; 21 | int denominator; 22 | } 23 | 24 | -(void) print; 25 | -(void) setNumerator: (int) d; 26 | -(void) setDenominator: (int) d; 27 | -(int) numerator; 28 | -(int) denominator; 29 | @end 30 | 31 | // Class implementation 32 | #import "Fraction.h" 33 | #import 34 | 35 | @implementation Fraction 36 | -(void) print { 37 | printf( "%i/%i", numerator, denominator ); 38 | } 39 | 40 | -(void) setNumerator: (int) n { 41 | numerator = n; 42 | } 43 | 44 | -(void) setDenominator: (int) d { 45 | denominator = d; 46 | } 47 | 48 | -(int) denominator { 49 | return denominator; 50 | } 51 | 52 | -(int) numerator { 53 | return numerator; 54 | } 55 | @end 56 | 57 | -------------------------------------------------------------------------------- /tests/syntax/octave.oct: -------------------------------------------------------------------------------- 1 | # Syntax Highlight Test File for Octave 2 | # Some comments about this file 3 | 4 | # HelloWorld in Octave 5 | printf("Hello World\n") 6 | 7 | a = [ 1, 1, 2; 3, 5, 8; 13, 21, 34 ] 8 | 9 | function s = plus (varargin) 10 | if (nargin==0) 11 | s = 0; 12 | else 13 | s = varargin{1} + plus (varargin{2:nargin}); 14 | endif 15 | endfunction 16 | -------------------------------------------------------------------------------- /tests/syntax/ooc.ooc: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting Sample File for OOC 2 | // Comments are like this 3 | import structs/ArrayList 4 | 5 | SPACE := const ' ' 6 | 7 | StringUtilities: class { 8 | split: static func (string: String) -> ArrayList { 9 | tokens := ArrayList new() 10 | 11 | lastIndex := 0 12 | for(index in 0..string length()) { 13 | if(string[index] == SPACE) { 14 | token := string[lastIndex..index] 15 | 16 | if(!token empty?()) { 17 | tokens add(token) 18 | } 19 | lastIndex = index + 1 20 | } 21 | } 22 | 23 | rest := string[lastIndex..string length()] 24 | if(!rest empty?()) { 25 | tokens add(rest) 26 | } 27 | 28 | return tokens 29 | } 30 | } 31 | 32 | main: func(arguments: ArrayList) { 33 | for(argument in arguments) { 34 | for(token in StringUtilities split(argument)) { 35 | token println() 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tests/syntax/pascal.pas: -------------------------------------------------------------------------------- 1 | { Syntax Highlighting Test File for Pascal 2 | Comments are like this 3 | Hello World in Pascal 4 | } 5 | program Hello; 6 | 7 | uses 8 | crt; 9 | 10 | begin 11 | ClrScr; 12 | Write('Hello world'); 13 | Readln; 14 | end. 15 | 16 | program Variables; 17 | 18 | const 19 | pi: Real = 3.14; 20 | 21 | var 22 | Num1, Num2, Ans: Integer; 23 | 24 | begin 25 | Ans := 1 + 1; 26 | Num1 := 5; 27 | Ans := Num1 + 3; 28 | Num2 := 2; 29 | Ans := Num1 - Num2; 30 | Ans := Ans * Num1; 31 | end. 32 | -------------------------------------------------------------------------------- /tests/syntax/perl.pl: -------------------------------------------------------------------------------- 1 | # Syntax Highlighting test file for Perl 2 | # Some comments about this file 3 | 4 | # Hello world in Perl 5 | print "Hello, world!\n"; 6 | 7 | # Numerous other style region tests 8 | 9 | # Number 10 | $number1 = 42; 11 | 12 | # String Tests 13 | $answer = "The answer is $number1"; # Variable interpolation 14 | $h1 = "Hello World \"Perl\""; # Double quoted string 15 | $h2 = 'Hello World "Perl"'; # Single Quoted String 16 | $h3 = qq(Hello World "Perl"); # qq() instead of quotes 17 | $multilined_string =< 'Hola', 28 | Bye => 'Adios' 29 | ); 30 | print $translate[Hello]; 31 | 32 | =item B 33 | 34 | This is a POD doc section 35 | 36 | =cut 37 | sub function1 { 38 | my %args = @_; 39 | print "Joe said '$args{Joe}'\n"; 40 | } 41 | function1( Joe => "Hello World" ); 42 | 43 | # Some Regular Expressions 44 | $x =~ m/abc/ 45 | $x =~ s/abc/aBc/; # substitute lowercase b with uppercase B 46 | -------------------------------------------------------------------------------- /tests/syntax/php.php: -------------------------------------------------------------------------------- 1 | $hello $world"; 16 | break; 17 | case "no": 18 | echo "

Bah!!

" 19 | break; 20 | default: 21 | echo "

$hello???

"; 22 | } 23 | } 24 | 25 | /* Class Definition Test */ 26 | class Foo 27 | { 28 | var $myvalue; 29 | 30 | function bar() 31 | { 32 | if (isset($this)) 33 | { 34 | echo '$this is defined ('; 35 | echo get_class($this); 36 | echo ")\n"; 37 | } else { 38 | echo "\$this is not defined.\n"; 39 | } 40 | } 41 | function helloA(param) { 42 | echo "$param"; 43 | } 44 | function printEndTag() { 45 | echo "?>" 46 | } 47 | function printStartTag() { 48 | echo " 57 | 58 | 59 | 60 | 61 | Hello.php 62 | 63 | 64 |
65 |

Today is and this website says

66 |
67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /tests/syntax/pike.pike: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting test file for Pike 2 | /* Some Comments about this file */ 3 | 4 | // Hello world in Pike 5 | int main() { 6 | write("Hello world!\n"); 7 | return 0; 8 | } 9 | 10 | //! \todo <- Documentation Doxygen Keyword highlighting 11 | mixed something; 12 | something = 5; 13 | something = 2.5; 14 | 15 | string testString; 16 | testString = "a regular string"; 17 | testString = "an open string 18 | 19 | // Print a list of unique characters 20 | string data = "an apple a day"; 21 | array(string) chars = data/""; 22 | mapping(string:int) seen = ([]); 23 | 24 | foreach(chars ;; string char) 25 | seen[char]++; 26 | 27 | write("unique chars are: %s\n", sort(indices(seen))*""); 28 | 29 | -------------------------------------------------------------------------------- /tests/syntax/plain_text.txt: -------------------------------------------------------------------------------- 1 | Here is some plain text to test the editor with highlighting in an in active state. This is rather boring isn't it? 2 | 3 | Hello World 4 | 5 | -------------------------------------------------------------------------------- /tests/syntax/postscript.ps: -------------------------------------------------------------------------------- 1 | %!PS 2 | % Syntax Highlighting Test File for Postscript 3 | % Comments are like this 4 | % Hello World in Postscript 5 | 1.00000 0.99083 scale 6 | /Courier findfont 12 scalefont setfont 7 | 0 0 translate 8 | /row 769 def 9 | 85 {/col 18 def 6 {col row moveto (Hello World)show /col col 90 add def} 10 | repeat /row row 9 sub def} repeat 11 | showpage save restore 12 | -------------------------------------------------------------------------------- /tests/syntax/progress_4gl.4gl: -------------------------------------------------------------------------------- 1 | /* Syntax highlight test file for Progress 4GL */ 2 | 3 | DEFINE TEMP-TABLE tt 4 | FIELDS site like ld_site 5 | FIELDS loc like ld_loc 6 | FIELDS part like ld_part 7 | FIELDS lot like ld_lot 8 | FIELDS ref like ld_ref 9 | FIELDS ldt like ld_date 10 | FIELDS ldst like ld_status 11 | FIELDS qoh like ld_qty_oh 12 | FIELDS coh like ld_cust_consign_qty. 13 | 14 | INPUT FROM "ld-ncstkinconsignloc.d". 15 | REPEAT TRANSACTION. 16 | CREATE tt. 17 | IMPORT tt. 18 | END. 19 | INPUT CLOSE. 20 | 21 | OUTPUT TO "cyc-amt-02.d". 22 | FOR EACH tt: 23 | FINF FIRST pt_mstr WHERE pt_part = part NO-LOCK NO-ERROR. 24 | 25 | FIND FIRST pl_mstr WHERE pl_prod_line = pt_prod_line NO-LOCK NO-ERROR. 26 | FIND FIRST sct_det where sct_sim = "standard" 27 | AND sct_site = "g1" 28 | AND sct_part = part NO-LOCK NO-ERROR. 29 | EXPORT site loc part lot ref 30 | pt_prod_line 31 | pl_inv_acct 32 | pl_inv_cc 33 | qoh sct_cst_tot qoh * sct_cst_tot. 34 | END. 35 | -------------------------------------------------------------------------------- /tests/syntax/properties.ini: -------------------------------------------------------------------------------- 1 | # Syntax Highlighting Test file for Properties Files 2 | # Some comments about this file 3 | 4 | # Section Def 5 | [greetings] 6 | hello=1 7 | world=2 8 | 9 | [food] 10 | cheese=('gouda', 'swiss') 11 | bread=('french', 'italian', 'sliced') 12 | meat=('steak', 'pork') 13 | fish=('salmon', 'tuna') 14 | fruit=('apple', 'orange', 'watermelon') 15 | -------------------------------------------------------------------------------- /tests/syntax/python.python: -------------------------------------------------------------------------------- 1 | # Syntax Highlight Test File for Python 2 | # Some Comments about this file 3 | 4 | """ 5 | A test file for checking styles for the python highlighter. 6 | This is a docstring 7 | 8 | """ 9 | __author__ = "Cody Precord" 10 | 11 | # Keyword statement 12 | import sys 13 | 14 | # Function Definition 15 | def say_hello(): 16 | """Prints hello world to the console""" 17 | print "Hello World" 18 | print "unclosed string 19 | 20 | # Class Definition 21 | class Greeting: 22 | """A class to represent a greeting""" 23 | def __init__(self, language): 24 | """initializes the greeting""" 25 | self._lang = language 26 | 27 | def __str__(self): 28 | """Returns the string representation of the greeting""" 29 | if self._lang == "English": 30 | return "Hello" 31 | elif self._lang == "Spanish": 32 | return "Holla" 33 | else: 34 | return "Sorry I dont know %s" % self._lang 35 | 36 | # Decorator's (python 2.4+) 37 | @property 38 | def classdocs(self): 39 | return '\n'.join([ x.__doc__ for x in dir(self) if hasattr(x, '__doc__')]) 40 | 41 | if __name__ == '__main__': 42 | say_hello() 43 | print Greeting('English') 44 | -------------------------------------------------------------------------------- /tests/syntax/r.r: -------------------------------------------------------------------------------- 1 | # Syntax Highlighting test file for R 2 | # Comments look like this 3 | 4 | options(digits=7) 5 | 6 | ## powers 7 | outer(a <- -4:12, -2:7, "^") 8 | 9 | for (n1 in 1:7) 10 | print(zapsmall(polyroot(1:n1), digits = 10)) 11 | 12 | ## lowess() {incl. sort, etc}: 13 | options(digits = 5) 14 | 15 | lowess(c(3,2,6,3,8,4))$y # this used to differ on Linux 16 | 17 | y1 <- c(3,1:2,5:2,4,1:3,3) 18 | lowess(y1)$y 19 | lowess(y1, f = .4)$y 20 | 21 | lowess(c(y1,100), f = .4)$y 22 | 23 | ## this is the test sample from Cleveland's original lowess.doc: 24 | x <- c(1:5, rep(6,10),8,10,12,14,50) 25 | y <- c(18,2,15,6,10,4,16,11,7,3,14,17,20,12,9,13,1,8,5,19) 26 | lowess(x,y, f = .25, iter = 0, delta = 0)$y 27 | lowess(x,y, f = .25, iter = 0, delta = 3)$y 28 | lowess(x,y, f = .25, iter = 2, delta = 0)$y 29 | -------------------------------------------------------------------------------- /tests/syntax/ruby.rb: -------------------------------------------------------------------------------- 1 | # Syntax Highlighting Test File for Ruby 2 | # Some Comments about this file 3 | # Hello World in ruby 4 | 5 | # Keyword statement and string 6 | puts 'Hello world' 7 | 8 | # Function Definitions 9 | def hello2(name) 10 | puts "Hello #{name}!" 11 | end 12 | 13 | # Class Definition 14 | class Greeter 15 | def intialize(name = "World") 16 | @name = name 17 | end 18 | def say_hello 19 | puts "Hello #{@name}!" 20 | end 21 | def say_bye 22 | puts "Bye #{@name}, come again." 23 | end 24 | end 25 | 26 | # Keyword and some Numbers 27 | puts 5 ** 2 28 | -------------------------------------------------------------------------------- /tests/syntax/s.s: -------------------------------------------------------------------------------- 1 | # Syntax Highlighting test file for S 2 | # Comments look like this 3 | 4 | options(digits=7) 5 | 6 | ## powers 7 | outer(a <- -4:12, -2:7, "^") 8 | 9 | for (n1 in 1:7) 10 | print(zapsmall(polyroot(1:n1), digits = 10)) 11 | 12 | ## lowess() {incl. sort, etc}: 13 | options(digits = 5) 14 | 15 | lowess(c(3,2,6,3,8,4))$y # this used to differ on Linux 16 | 17 | y1 <- c(3,1:2,5:2,4,1:3,3) 18 | lowess(y1)$y 19 | lowess(y1, f = .4)$y 20 | 21 | lowess(c(y1,100), f = .4)$y 22 | 23 | ## this is the test sample from Cleveland's original lowess.doc: 24 | x <- c(1:5, rep(6,10),8,10,12,14,50) 25 | y <- c(18,2,15,6,10,4,16,11,7,3,14,17,20,12,9,13,1,8,5,19) 26 | lowess(x,y, f = .25, iter = 0, delta = 0)$y 27 | lowess(x,y, f = .25, iter = 0, delta = 3)$y 28 | lowess(x,y, f = .25, iter = 2, delta = 0)$y 29 | -------------------------------------------------------------------------------- /tests/syntax/scheme.scm: -------------------------------------------------------------------------------- 1 | ; Syntax Highlighting Test File for Scheme 2 | ; Comments are like this 3 | 4 | ; Hello World 5 | (define hello-world 6 | (lambda () 7 | (begin 8 | (write 'Hello-World) 9 | (newline) 10 | (hello-world)))) 11 | 12 | ; Factorial 13 | (define (fact n) 14 | (if (= n 0) 15 | 1 16 | (* n (fact (- n 1))))) 17 | 18 | -------------------------------------------------------------------------------- /tests/syntax/smalltalk.st: -------------------------------------------------------------------------------- 1 | " Syntax Highlighting Test File for Smalltalk " 2 | " Comments are like this " 3 | " Hello World in smalltalk " 4 | 5 | " Heres helloworld doesnt get much easier that this " 6 | 'Hello World!' 7 | 8 | " Heres a version in a window " 9 | | window | 10 | window := Window new. 11 | window label: 'Hello World'. 12 | window open. 13 | 14 | " Character Definition" 15 | | mychar | 16 | mychar := $A 17 | 18 | " Symbol Definition " 19 | | mySym | 20 | mySym := #foo 21 | 22 | " Symbol Array " 23 | mySym := #(1 2 3 4) 24 | 25 | " Class Def " 26 | Object subclass: #MessagePublisher 27 | instanceVariableNames: '' 28 | classVariableNames: '' 29 | poolDictionaries: '' 30 | category: 'Smalltalk Examples' 31 | 32 | | rectangles aPoint| 33 | rectangles := OrderedCollection 34 | with: (Rectangle left: 0 right: 10 top: 100 bottom: 200) 35 | with: (Rectangle left: 10 right: 10 top: 110 bottom: 210). 36 | aPoint := Point x: 20 y: 20. 37 | collisions := rectangles select: [:aRect | aRect containsPoint: aPoint]. 38 | 39 | result := a > b 40 | ifTrue:[ 'greater' ] 41 | ifFalse:[ 'less' ] 42 | -------------------------------------------------------------------------------- /tests/syntax/squirrel.nut: -------------------------------------------------------------------------------- 1 | // Squirrel Syntax Highlighting Test File 2 | // Comments are like this 3 | /** Multiline comments are like this 4 | * @summary <- Documentation keywords are like this 5 | */ 6 | 7 | // Hello World 8 | print("Hello World") 9 | 10 | // Literals 11 | local a = 123 // Decimal 12 | local b = 0x0012 // Hexadecimal 13 | local c = 075 // Octal 14 | local d = 'w' // Char 15 | local e = "string" // String 16 | local f = "Unclosed string 17 | 18 | // Function Definition 19 | function fib(n) 20 | { 21 | if (n < 2) return 1 22 | return fib(n-2) + fib(n-1) 23 | } 24 | 25 | // Class Construct 26 | class Foo { 27 | //constructor 28 | constructor(a) 29 | { 30 | bar = ["bar", 1, 2, 3]; 31 | } 32 | 33 | function PrintBar() 34 | { 35 | foreach(i, val in bar) 36 | { 37 | ::print("idx = " + i + " = " + val + " \n"); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /tests/syntax/stata.do: -------------------------------------------------------------------------------- 1 | /* STATA Test File /* 2 | /* Comments look like this */ 3 | 4 | set mem 100m 5 | use "this\is\where\stata\file\is\file.dta", clear 6 | use "file.dta", clear 7 | 8 | 9 | forvalues i = 1(1)10 { 10 | 11 | keep if auction==`i' 12 | tabstat V1, by(V2) s(mean sd median count) 13 | reg V1 V2 V3,robust 14 | } 15 | -------------------------------------------------------------------------------- /tests/syntax/svg.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 12 | 14 | 21 | 25 | Hello World 34 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /tests/syntax/tcl_tk.tcl: -------------------------------------------------------------------------------- 1 | # Syntax Highlighting Test File for TCL/TK 2 | # Comments are like this 3 | # Hello World in tcl/tk 4 | 5 | wm title . "Hello world!" 6 | 7 | frame .h -borderwidth 2 8 | frame .q -borderwidth 2 9 | button .h.hello -text "Hello world" \ 10 | -command "puts stdout \"Hello world!\"" -cursor gumby 11 | button .q.quit -text "Quit" -command exit -cursor pirate 12 | 13 | pack .h -side left 14 | pack .q -side right 15 | pack .h.hello 16 | pack .q.quit 17 | 18 | # Procedure Definition 19 | proc printArguments args { 20 | foreach arg $args { 21 | puts $arg 22 | } 23 | } 24 | 25 | proc foo::xxxx {} { 26 | set a xxxxxxxxxxxx 27 | } 28 | proc foo_bar {} { 29 | set b xxxxxxx 30 | } 31 | 32 | proc foo::yyyy {} { 33 | set a bbbbbbb 34 | } 35 | 36 | # SNIT 37 | package provide test 1.0 38 | 39 | snit::widgetadaptor mySnit { 40 | 41 | package require mypack 2.2 42 | 43 | constructor {args} { 44 | installhull using text -insertwidth 0 45 | $self configurelist $args 46 | } 47 | 48 | typevariable myList [list] 49 | 50 | typemethod list {} { 51 | return $myList 52 | } 53 | 54 | # Disable the insert and delete methods, to make this readonly. 55 | method insert {args} {} 56 | method delete {args} {} 57 | } 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /tests/syntax/unicode_text.txt: -------------------------------------------------------------------------------- 1 | The next line should show some Japanese characters 2 | こにちは 今晩は 3 | 4 | The next lines should show a bunch of other special characters, the description 5 | of the character is o the left and should be directly followed by the actual 6 | character to the right of the ':'. 7 | 8 | Trademark symbol: ™ 9 | Infinity: ∞ 10 | Bullet: • 11 | Not Equal: ≠ 12 | Yen Symbol: ¥ 13 | Triangle: ∆ 14 | Greater than equal to: ≥ 15 | Less than equal to: ≤ 16 | Checkmark: √ 17 | Pi: π 18 | Copyright: © 19 | -------------------------------------------------------------------------------- /tests/syntax/vala.vala: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting Test File for Vala 2 | // Comments are like this 3 | /* Multiline comments are like 4 | * this. 5 | */ 6 | 7 | // Hello World in Vala 8 | using GLib; 9 | 10 | //! \summary Documentation keyword 11 | public class Sample : Object { 12 | 13 | // Some Variable definitions 14 | public static const double ASPECT = 8.0/6.0; 15 | static unichar a_char = 'a'; 16 | 17 | public Sample () { 18 | } 19 | 20 | public void run () { 21 | stdout.printf ("Hello World\n"); 22 | stdout.printf ("Unclosed string); 23 | stdout.printf ('a'); // <- Char 24 | } 25 | 26 | static int main (string[] args) { 27 | var sample = new Sample (); 28 | sample.run (); 29 | return 0; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tests/syntax/vbscript.vbs: -------------------------------------------------------------------------------- 1 | ' Syntax Highlighting test file for VBScript 2 | ' Comments look like this 3 | 4 | function hello(name) 'comment for function 5 | 6 | on error resume next 7 | 8 | dim x,y 9 | 10 | if name<>"World" then 11 | for x = 1 to 10 12 | wscript.echo "Hello " & name 13 | next 14 | else 15 | x=0 16 | do while x<10 17 | wscript.echo "Hello World" 18 | x=x+1 19 | loop 20 | end if 21 | 22 | hello=x+y 23 | 24 | end function 25 | 26 | Public Function testPublicFunct() 27 | dim c,d 28 | end Sub 29 | 30 | sub testStub() 31 | dim a,b 32 | end sub 33 | 34 | Public Sub testPublicSub() 35 | dim c,d 36 | end Sub 37 | 38 | '--------------------------- 39 | 40 | on error resume next 41 | 42 | dim didIt 43 | dim userid 44 | 45 | set WshShell = WScript.CreateObject("WScript.Shell") 46 | 'Finds the user name from an environment variable 47 | userid=wshshell.expandenvironmentstrings("%username%") 48 | 49 | didIt=hello(userid) 50 | 51 | wscript.exit(0) 52 | -------------------------------------------------------------------------------- /tests/syntax/verilog.v: -------------------------------------------------------------------------------- 1 | // Syntax Highlighting Test file for Verilog 2 | // Some Comments about this file 3 | 4 | module toplevel(clock,reset); 5 | input clock; 6 | input reset; 7 | 8 | reg flop1; 9 | reg flop2; 10 | 11 | always @ (posedge reset or posedge clock) 12 | if (reset) 13 | begin 14 | flop1 <= 0; 15 | flop2 <= 1; 16 | end 17 | else 18 | begin 19 | flop1 <= flop2; 20 | flop2 <= flop1; 21 | end 22 | endmodule 23 | 24 | initial 25 | fork 26 | $write("A"); 27 | $write("B"); 28 | begin 29 | #1; 30 | $write("C"); 31 | end 32 | join 33 | -------------------------------------------------------------------------------- /tests/syntax/vhdl.vhdl: -------------------------------------------------------------------------------- 1 | -- Syntax Highlighting Test File for VHDL 2 | -- Comments are like this 3 | -- Hello World in VHDL 4 | 5 | entity hello_world is 6 | end; 7 | 8 | architecture hello_world of hello_world is 9 | begin 10 | stimulus : process 11 | begin 12 | assert false report "Hello World By Deepak" 13 | severity note; 14 | wait; 15 | end process stimulus; 16 | end hello_world; 17 | 18 | -- A simple counter 19 | library ieee ; 20 | use ieee.std_logic_1164.all; 21 | use ieee.std_logic_unsigned.all; 22 | 23 | entity counter is 24 | port( clk: in std_logic; 25 | reset: in std_logic; 26 | enable: in std_logic; 27 | count: out std_logic_vector(3 downto 0) 28 | ); 29 | end counter; 30 | 31 | architecture behav of counter is 32 | signal pre_count: std_logic_vector(3 downto 0); 33 | begin 34 | process(clk, enable, reset) 35 | begin 36 | if reset = '1' then 37 | pre_count <= "0000"; 38 | elsif (clk='1' and clk'event) then 39 | if enable = '1' then 40 | pre_count <= pre_count + "1"; 41 | end if; 42 | end if; 43 | end process; 44 | count <= pre_count; 45 | end behav; 46 | -------------------------------------------------------------------------------- /tests/syntax/visual_basic.vb: -------------------------------------------------------------------------------- 1 | ' Visual Basic Hello World 2 | ' Some more comments about this file 3 | VERSION 4.00 4 | Begin VB.Form Form1 5 | Caption = "Hello" 6 | ClientHeight = 6030 7 | ClientLeft = 1095 8 | ClientTop = 1515 9 | ClientWidth = 6720 10 | Height = 6435 11 | Left = 1035 12 | LinkTopic = "Form1" 13 | ScaleHeight = 6030 14 | ScaleWidth = 6720 15 | Top = 1170 16 | Width = 6840 17 | Begin VB.CommandButton Command1 18 | Caption = "Hello World" 19 | Height = 975 20 | Left = 2040 21 | TabIndex = 0 22 | Top = 2280 23 | Width = 2535 24 | End 25 | End 26 | Attribute VB_Name = "Form1" 27 | Attribute VB_Creatable = False 28 | Attribute VB_Exposed = False 29 | Private Sub Command1_Click() 30 | Cls 31 | Print "Hello World" 32 | End Sub -------------------------------------------------------------------------------- /tests/syntax/xml.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Editra.org 7 | http://editra.org/index.php 8 | Editra Text Editor 9 | en-us 10 | Editra.org 11 | 12 | Cleanup Round 2 13 | http://editra.org/index.php?artical=helloWorld 14 | Hello XML 15 | admin@editra.org (cody) 16 | Sat, 11 Nov 2006 17:47:39 -0800 17 | http://editra.org/index.php?artical=helloWorld 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/syntax/yaml.yaml: -------------------------------------------------------------------------------- 1 | # Syntax Highlighting Test file for YAML 2 | # Some Comments about this file 3 | 4 | ---!myDocument 5 | logEvent: Hello World 6 | date: 2007-08-06 7 | customer: 8 | given: Joe 9 | family: Bazooka 10 | 11 | greet: &id001 12 | location: | 13 | In Front of you 14 | 15 | greeting: 16 | - first: Hello 17 | second: World 18 | 19 | - first: Buy my gum 20 | second: I give you Comics 21 | 22 | specialGreeting: > 23 | This is a text section of a yaml document all 24 | the (xxx:) items are identifiers. 25 | ... 26 | -------------------------------------------------------------------------------- /tests/unittests/data/embedded_nulls.txt: -------------------------------------------------------------------------------- 1 | 2009-07-16 12:00:36 2 | -------------------------------------------------------------------------------- /tests/unittests/data/image_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/tests/unittests/data/image_test.png -------------------------------------------------------------------------------- /tests/unittests/data/non_print_char.txt: -------------------------------------------------------------------------------- 1 | Test file that has a not printable char in it  the character is to the left of here chr(20) -------------------------------------------------------------------------------- /tests/unittests/data/test_read_utf16.txt: -------------------------------------------------------------------------------- 1 | This is a simple test file 2 | encoded w/ UTF-16 LE 3 | -------------------------------------------------------------------------------- /tests/unittests/data/test_read_utf32_bom.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaal/editra/07fc28e3f69548bbd90553cbea70051cd2f2309c/tests/unittests/data/test_read_utf32_bom.txt -------------------------------------------------------------------------------- /tests/unittests/data/test_read_utf8.txt: -------------------------------------------------------------------------------- 1 | # coding=utf-8 2 | The above line is for testing the magic comment detection. 3 | 4 | Test File for doing simple reading commands. 5 | 6 | Some Japanese characters 7 | 8 | テースト 9 | ビールを飲みたい 10 | -------------------------------------------------------------------------------- /tests/unittests/data/test_read_utf8_bom.txt: -------------------------------------------------------------------------------- 1 | # coding=utf-8 2 | # with utf-8 BOM 3 | The above line is for testing the magic comment detection. 4 | 5 | Test File for doing simple reading commands. 6 | 7 | Some Japanese characters 8 | 9 | テースト 10 | ビールを飲みたい 11 | -------------------------------------------------------------------------------- /tests/unittests/testArtProvider.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: testArtProvider.py # 3 | # Purpose: Unit tests for the ArtProvider # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2009 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """Unittest cases for testing the artprovider""" 10 | 11 | __author__ = "Cody Precord " 12 | __svnid__ = "$Id: testArtProvider.py 65165 2010-08-02 22:04:37Z CJP $" 13 | __revision__ = "$Revision: 65165 $" 14 | 15 | #-----------------------------------------------------------------------------# 16 | # Imports 17 | import wx 18 | import os 19 | import unittest 20 | 21 | # Local modules 22 | import common 23 | 24 | # Module to test 25 | import ed_glob 26 | import ed_art 27 | 28 | #-----------------------------------------------------------------------------# 29 | # Test Class 30 | 31 | class ArtProviderTest(unittest.TestCase): 32 | """Tests the ArtProvider class""" 33 | def setUp(self): 34 | ap = ed_art.EditraArt() 35 | wx.ArtProvider.Push(ap) 36 | 37 | def tearDown(self): 38 | pass 39 | 40 | #---- Test Cases ----# 41 | 42 | def testGetBitmap(self): 43 | """Test getting a bitmap from the provider""" 44 | ap = wx.ArtProvider() 45 | bmp = ap.GetBitmap(str(ed_glob.ID_COPY), wx.ART_MENU) 46 | self.assertTrue(bmp.IsOk()) 47 | self.assertEquals(bmp.GetSize(), (16, 16)) 48 | 49 | bmp = ap.GetBitmap(str(ed_glob.ID_COPY), wx.ART_TOOLBAR) 50 | self.assertTrue(bmp.IsOk()) 51 | 52 | bmp = ap.GetBitmap(str(-1), wx.ART_MENU) 53 | self.assertTrue(bmp.IsNull()) 54 | -------------------------------------------------------------------------------- /tests/unittests/testEBMLibMisc.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: testEBMLibMisc.py # 3 | # Purpose: Unit tests for ebmlib misc utils # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2010 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """Unittest cases for testing the Misc Utilities module in ebmlib""" 10 | 11 | __author__ = "Cody Precord " 12 | __svnid__ = "$Id: testEBMLibMisc.py 63847 2010-04-03 23:16:28Z CJP $" 13 | __revision__ = "$Revision: 63847 $" 14 | 15 | #-----------------------------------------------------------------------------# 16 | # Imports 17 | import unittest 18 | 19 | # Module to test 20 | import ebmlib 21 | 22 | #-----------------------------------------------------------------------------# 23 | # Test Class 24 | 25 | class EBMLibMiscTest(unittest.TestCase): 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testMinMax(self): 33 | data = [(1, 2), (2, 1), (100, 200), (43, 41)] 34 | for val in data: 35 | res = ebmlib.MinMax(*val) 36 | self.assertTrue(res[0] < res[1]) 37 | 38 | -------------------------------------------------------------------------------- /tests/unittests/testEdCrypt.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: testEdCrypt.py # 3 | # Purpose: Unit tests for the ed_crypt module utilities # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2009 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """Unittest cases for testing the ed_crypt utilities""" 10 | 11 | __author__ = "Cody Precord " 12 | __svnid__ = "$Id: testEdCrypt.py 62023 2009-09-22 21:16:56Z CJP $" 13 | __revision__ = "$Revision: 62023 $" 14 | 15 | #-----------------------------------------------------------------------------# 16 | # Imports 17 | import os 18 | import unittest 19 | 20 | # Module to test 21 | import ed_crypt 22 | 23 | #-----------------------------------------------------------------------------# 24 | # Test Class 25 | 26 | class EdCryptTest(unittest.TestCase): 27 | """Tests for the ed_crypt utilties""" 28 | def setUp(self): 29 | self.salt = os.urandom(8) 30 | self.secret = "hello world" 31 | 32 | def tearDown(self): 33 | pass 34 | 35 | #---- Test Cases ----# 36 | 37 | def testEncrypt(self): 38 | """Test Encrypting a string""" 39 | e_str = ed_crypt.Encrypt(self.secret, self.salt) 40 | self.assertTrue(e_str != self.secret) 41 | self.assertTrue(len(e_str) > 0) 42 | 43 | def testDecrypt(self): 44 | """Test decrypting a string""" 45 | e_str = ed_crypt.Encrypt(self.secret, self.salt) 46 | self.assertTrue(e_str != self.secret) 47 | self.assertTrue(len(e_str) > 0) 48 | 49 | d_str = ed_crypt.Decrypt(e_str, self.salt) 50 | self.assertTrue(d_str == self.secret) 51 | -------------------------------------------------------------------------------- /tests/unittests/testFactory.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: testFactory.py # 3 | # Purpose: Unit tests for the FactoryMixin. # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2011 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """Unittest cases for testing ebmlib.FactoryMixin""" 10 | 11 | __author__ = "Cody Precord " 12 | __svnid__ = "$Id: testFactory.py 69448 2011-10-18 14:17:53Z CJP $" 13 | __revision__ = "$Revision: 69448 $" 14 | 15 | #-----------------------------------------------------------------------------# 16 | # Imports 17 | import unittest 18 | 19 | # Module to test 20 | import ebmlib 21 | 22 | #-----------------------------------------------------------------------------# 23 | # Test Class 24 | 25 | class FactoryTest(unittest.TestCase): 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testFactoryCreate(self): 33 | obj = BaseWidget.FactoryCreate('foo') 34 | self.assertTrue(isinstance(obj, FooWidget)) 35 | self.assertTrue(obj.meta.data == 'FOOBAR') 36 | obj = BaseWidget.FactoryCreate('bar') 37 | self.assertTrue(isinstance(obj, BarWidget)) 38 | self.assertTrue(obj.meta.data == 'NULL') 39 | obj = BaseWidget.FactoryCreate('junk') 40 | self.assertTrue(type(obj) is BaseWidget) 41 | 42 | #-----------------------------------------------------------------------------# 43 | 44 | # Test classes to test factory 45 | 46 | class BaseWidget(ebmlib.FactoryMixin): 47 | def __init__(self): 48 | super(BaseWidget, self).__init__() 49 | 50 | @classmethod 51 | def GetMetaDefaults(cls): 52 | return dict(id=None, data="NULL") 53 | 54 | class FooWidget(BaseWidget): 55 | class meta: 56 | id = "foo" 57 | data = "FOOBAR" 58 | 59 | class BarWidget(BaseWidget): 60 | class meta: 61 | id = "bar" 62 | -------------------------------------------------------------------------------- /tests/unittests/testFileTypeChecker.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: testFileTypeChecker.py # 3 | # Purpose: Unit tests for ebmlib.FileTypeChecker # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2009 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """Unittest cases for testing the FileTypeChecker class """ 10 | 11 | __author__ = "Cody Precord " 12 | __svnid__ = "$Id: testFileTypeChecker.py 65165 2010-08-02 22:04:37Z CJP $" 13 | __revision__ = "$Revision: 65165 $" 14 | 15 | #-----------------------------------------------------------------------------# 16 | # Imports 17 | import wx 18 | import os 19 | import unittest 20 | 21 | # Local modules 22 | import common 23 | 24 | # Module to test 25 | import ebmlib 26 | 27 | #-----------------------------------------------------------------------------# 28 | # Test Class 29 | 30 | class FileTypeCheckerTest(unittest.TestCase): 31 | def setUp(self): 32 | self.fpath = common.GetDataFilePath(u'test_read_utf8.txt') 33 | self.bpath = common.GetDataFilePath(u'image_test.png') 34 | self.checker = ebmlib.FileTypeChecker() 35 | 36 | def tearDown(self): 37 | pass 38 | 39 | #---- Tests ----# 40 | def testIsBinary(self): 41 | """Test the IsBinary checker method""" 42 | self.assertTrue(self.checker.IsBinary(self.bpath)) 43 | self.assertFalse(self.checker.IsBinary(self.fpath)) 44 | 45 | def testIsBinaryBytes(self): 46 | """Test checking for binary bytes in a string""" 47 | f = open(self.bpath, 'rb') 48 | bytes = f.read() 49 | f.close() 50 | self.assertTrue(self.checker.IsBinaryBytes(bytes)) 51 | f = open(self.fpath, 'rb') 52 | bytes = f.read() 53 | f.close() 54 | self.assertFalse(self.checker.IsBinaryBytes(bytes)) 55 | 56 | def testIsReadableText(self): 57 | """Test if the file is a readable as text.""" 58 | self.assertTrue(self.checker.IsReadableText(self.fpath)) 59 | 60 | -------------------------------------------------------------------------------- /tests/unittests/testThreadpool.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: testThreadpool.py # 3 | # Purpose: Unit tests for the Icon Theme provider # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2011 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """Unittest cases for testing the icon theme provider interface""" 10 | 11 | __author__ = "Cody Precord " 12 | __svnid__ = "$Id: $" 13 | __revision__ = "$Revision: $" 14 | 15 | #-----------------------------------------------------------------------------# 16 | # Imports 17 | import wx 18 | import os 19 | import time 20 | import threading 21 | import unittest 22 | 23 | # Module to test 24 | import ebmlib 25 | 26 | #-----------------------------------------------------------------------------# 27 | # Test Class 28 | 29 | def doWork(seconds, id_, callback): 30 | """Worker job for threadpool test""" 31 | time.sleep(seconds) 32 | callback(id_) # notify done 33 | 34 | class ThreadpoolTest(unittest.TestCase): 35 | """Tests the ThreadPool class""" 36 | def setUp(self): 37 | self._threads = 3 38 | self.pool = ebmlib.ThreadPool(self._threads) 39 | self._completed = list() 40 | self._lock = threading.Lock() 41 | 42 | def tearDown(self): 43 | self.pool.Shutdown() 44 | self._completed = list() 45 | 46 | def notifyDone(self, id_): 47 | with self._lock: 48 | self._completed.append(id_) 49 | 50 | #---- Test Cases ----# 51 | 52 | def testThreadCount(self): 53 | """Check that thread pool spawned off requested number of threads""" 54 | self.assertEquals(self.pool.ThreadCount, self._threads) 55 | 56 | def testQueueJob(self): 57 | jobs = [ (1.5, 1), (2, 2), (0.5, 3), (1, 4) ] 58 | for job in jobs: 59 | self.pool.QueueJob(doWork, job[0], job[1], self.notifyDone) 60 | maxwait = sum([j[0] for j in jobs]) 61 | time.sleep(maxwait) # wait for the jobs to finish 62 | self.assertTrue(len(jobs) == len(self._completed), repr(self._completed)) 63 | -------------------------------------------------------------------------------- /tests/unittests/testTxtUtil.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: testTxtUtil.py # 3 | # Purpose: Unit tests for the txtutil functions of ebmlib # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2009 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """Unittest cases for testing the txtutil functions""" 10 | 11 | __author__ = "Cody Precord " 12 | __svnid__ = "$Id: testTxtUtil.py 61504 2009-07-23 03:39:28Z CJP $" 13 | __revision__ = "$Revision: 61504 $" 14 | 15 | #-----------------------------------------------------------------------------# 16 | # Imports 17 | import unittest 18 | 19 | # Local modules 20 | import common 21 | 22 | # Module to test 23 | import ebmlib 24 | 25 | #-----------------------------------------------------------------------------# 26 | # Test Class 27 | 28 | class TxtUtilTest(unittest.TestCase): 29 | """Tests for the fileutil functions of ebmlib""" 30 | def setUp(self): 31 | pass 32 | 33 | def tearDown(self): 34 | pass 35 | 36 | #---- Unittests Test Cases----# 37 | 38 | def testIsUnicode(self): 39 | """Test checking if a string is unicode or not""" 40 | self.assertTrue(ebmlib.IsUnicode(u"HELLO")) 41 | self.assertFalse(ebmlib.IsUnicode("Hello")) 42 | 43 | -------------------------------------------------------------------------------- /tests/unittests/testUtil.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Name: testUtil.py # 3 | # Purpose: Unit tests for util.py module in Editra/src # 4 | # Author: Cody Precord # 5 | # Copyright: (c) 2008 Cody Precord # 6 | # License: wxWindows License # 7 | ############################################################################### 8 | 9 | """Unittest cases for testing the various Utility functions in 10 | the util module. 11 | 12 | """ 13 | 14 | __author__ = "Cody Precord " 15 | __svnid__ = "$Id: testUtil.py 60510 2009-05-04 04:01:58Z CJP $" 16 | __revision__ = "$Revision: 60510 $" 17 | 18 | #-----------------------------------------------------------------------------# 19 | # Imports 20 | import wx 21 | import os 22 | import unittest 23 | 24 | # Local modules 25 | import common 26 | 27 | # Module to test 28 | import util 29 | 30 | #-----------------------------------------------------------------------------# 31 | # Test Class 32 | 33 | class UtilTest(unittest.TestCase): 34 | def setUp(self): 35 | self.fpath = common.GetDataFilePath(u'test_read_utf8.txt') 36 | self.bpath = common.GetDataFilePath(u'image_test.png') 37 | 38 | def tearDown(self): 39 | pass 40 | 41 | #---- Tests ----# 42 | 43 | def testFilterFiles(self): 44 | """Test the file filter function""" 45 | rlist = util.FilterFiles([self.fpath, self.bpath]) 46 | self.assertEquals(len(rlist), 1) 47 | 48 | def testGetAllEncodings(self): 49 | """Test getting the list of available system encodings""" 50 | encs = util.GetAllEncodings() 51 | self.assertTrue(len(encs) > 0) 52 | 53 | for enc in encs: 54 | self.assertTrue(isinstance(enc, basestring)) 55 | 56 | def testGetFileManagerCmd(self): 57 | """Test retrieving the systems filemanager command""" 58 | cmd = util.GetFileManagerCmd() 59 | self.assertTrue(isinstance(cmd, basestring)) 60 | 61 | self.assertTrue(len(cmd) > 0) 62 | --------------------------------------------------------------------------------