[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] create - tut-gtk2-txtw-gsw

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2009年 2月 7日 (土) 12:25:59 JST


-------------------------
REMOTE_ADDR = 74.15.84.244
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-gsw
-------------------------
TITLE       = tut-gtk2-txtw-gsw
KEYWORD     = 
= The Text View Widget
{{link "tut-gtk2-txtw-icw", "tut-gtk2-txtw", "tut-gtk", "tut-gtk2-txtw-tyu"}}

    * 5 ((<Inserting Images|tut-gtk2-txtw-iimgs>))
    * 6 ((<Inserting Child Widgets|tut-gtk2-textview-icw>))
    * 7 ((<GtkSourceView|tut-gtk2-textview-gsw>))
    * 8 ((<Test Your Understanding|tut-gtk2-textview-tyu>))


== GtkSourceView

GtkSourceView is a widget that is not actually a part of the GTK+ libraries. It is an external library used to extend the Gtk::textView widget. There is a large list of features that GtkSourceView widget adds to the text view. A list of the most notable ones follows:

* Line numbering.
* Syntax highlighting for many programming languages.
* Automatic indentation.
* Bracket matching.
* Undo/Redo support.
* Source markers for for denoting locations in the source code.
* Highlighting the current line.

If you ever used GEdit you wil recognize the following image, where you can see a sample GtkSourceView widget

{{image_right("txtw-gsw.png")}}

{{br}}
((*images.rb*))

The GtkSourceView library has a whole separate API documentation, which can be viewed at the ((<URL:http://GtkSourceView.sourceforge.net>)). If you would like to make this library available to Ruby GTK+, you'd have to compile the library yourself and write Ruby interface for it. To compile an application that uses this library, you need to add `pkg-config --cflags --libs gtksourceview-1.0` to the compile command.




ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る