public
Description: Textmate-compatible editing widget for Gnome
Homepage: http://redcareditor.com
Clone URL: git://github.com/danlucraft/gtkmateview.git
name age message
file .gitignore Fri Aug 22 13:54:51 -0700 2008 Created dist/ directory [danlucraft]
file AUTHORS Mon Aug 25 06:21:53 -0700 2008 Added waf build scripts [danlucraft]
file README Tue Feb 17 00:22:11 -0800 2009 Wrote a README for new developers [danlucraft]
file Rakefile Wed Feb 18 00:02:31 -0800 2009 Added Mereghosts changes to the build file [danlucraft]
directory bin/ Mon Sep 01 12:22:59 -0700 2008 couple more optimizations [danlucraft]
directory dist/ Sat Jun 20 02:12:09 -0700 2009 Fixed bug in the way inner-end-marks are set. A... [danlucraft]
file index.html Wed Mar 25 01:12:37 -0700 2009 wax [danlucraft]
directory lib/ Mon Aug 31 03:27:39 -0700 2009 Fix for bug #14 (php highlighting in HTML mode)... [alourie]
file notes Mon Aug 25 06:21:53 -0700 2008 Added waf build scripts [danlucraft]
directory samples/ Sat Jan 03 04:27:10 -0800 2009 The 'disabled' attribute on grammar patterns ca... [danlucraft]
directory spec/ Mon Aug 31 03:29:53 -0700 2009 Removed spec/php_test.rb, test merged in static... [alourie]
directory tasks/ Sat Jun 20 02:12:09 -0700 2009 Fixed bug in the way inner-end-marks are set. A... [danlucraft]
directory vapi/ Mon Mar 09 01:20:27 -0700 2009 Merge branch 'utf8' Conflicts: dist/onig_wrap... [danlucraft]
file waf Mon Aug 25 06:21:53 -0700 2008 Added waf build scripts [danlucraft]
file wscript Mon Aug 25 06:21:53 -0700 2008 Added waf build scripts [danlucraft]
README
GtkMateView
    by Daniel Lucraft
    http://www.RedcarIDE.com/

== DESCRIPTION:
  
A textmate-compatible source highlighting widget for Gnome. Based
on GtkSourceView2, but with a new highlighting engine.

== FEATURES:

 * Highlights many languages, using the Textmate syntaxes.
 * On-demand in-thread parsing.

== FUTURE PLANS

 * Background threaded document parsing.
 * Export documents to marked up HTML.

== PREREQUISITES

For the widget: 

 * Glib, Gtk, GtkSourceView2. (available in Ubuntu packages)
 * Oniguruma http://www.geocities.jp/kosako3/oniguruma/ (available in Ubuntu packages)

For the Ruby bindings as well: 

 * Ruby-GNOME2  http://ruby-gnome2.sourceforge.jp/ (install from latest SVN version)

To rebuild the C dist files from the Vala source: 

 * Vala    http://live.gnome.org/Vala  (Ubuntu packages way out of date in Intrepid)
 * libgee  http://live.gnome.org/Libgee  (Ubuntu packages way out of date in Intrepid)
 * Valar   http://github.com/danlucraft/valar/tree  (not packaged for Ubuntu)

To install the grammars for many languages, download either from Macromates:

    export LC_CTYPE=en_US.UTF-8
    cd /usr/local/share/
    sudo svn co http://macromates.com/svn/Bundles/trunk textmate

or from the redcar-bundles port, which is probably better if you are intending
to use GtkMateView with Redcar, though it has fewer languages:

    cd /usr/local/share
    sudo git clone git://github.com/danlucraft/redcar-bundles.git textmate

== BUILDING THE WIDGET WITH RUBY BINDINGS

    cd dist/
    ruby extconf.rb
    make

== USING THE RUBY BINDINGS

    require 'gtk2'
    require 'dist/gtkmateview'

    gmv = Gtk::Mate::View.new
    gmv.buffer = Gtk::Mate::Buffer.new
    Gtk.idle_add do
      gmv.buffer.set_grammar_by_name("Ruby")
      gmv.set_theme_by_name("Twilight")
      false
    end
    win = Gtk::Window.new
    win.set_size_request(800, 600)
    win.add(gmv)
    win.show_all
    Gtk.main

== REGENERATING C SOURCE FILES FROM VALA

To rebuild the C dist files from the Vala sources, first make sure that
you have current versions of the Vala compiler (0.5.6 at this time) and
libgee installed. The build script will also expect Valar to be present, and
the valar/ directory should be a sibling of the gtkmateview/ directory (hack in 
tasks/build.rake to change this.) Then execute from the gtkmateview directory:

    rake build:all

== BUILDING BINARY FOR PROFILING

(This currently does not work, please fix.)

Basic waf[1] based project template for Vala[2]. To build and run the resulting
binaries:

    ./waf configure
    ./waf
    ./_build_/default/src/hello-gtk

[1] http://code.google.com/p/waf/
[2] http://live.gnome.org/Vala


== LICENSE:

Redcar is copyright 2008 Daniel B. Lucraft and contributors. It is licensed under the GPL2.