Txt2tags and gedit

Stefano D’Archino told us about his new creation: the txt2tags language file for gedit.

His instructions follows:

  • Put the file in /usr/share/gtksourceview-1.0/language-spec
  • Adjust the colors for the syntax in Gedit preferences

Zoom.Quiet, a long time txt2tags user, gave us a nice screenshot of his gedit using this file:

txt2tags gedit

FYI: gedit is the official text editor of the GNOME desktop environment. I know you already knew that, but… You know :)

Advertisements

6 responses to “Txt2tags and gedit

  1. If you do not have super user rights or want to enable syntax highlighting just for yourself, then copy the .lang-file to
    ~/.gnome2/gtksourceview-1.0/language-specs/
    .
    It’s explained here: http://textmethod.com/wiki/ReStructuredTextToolsForGedit

    You also can create a new mime-type. Check out my howto:
    file:///media/srv/home/dfm/web/tiddlywiki.html#%5B%5BGedit-Highlighting%20for%20Text2Tags%5D%5D

  2. Current Gedit uses gtksourceview 2.x, which luckly is backwards compatible with version 1.x language specifications like this one.

  3. Under openSUSE 11.1 the correct path is: /usr/share/gtksourceview-2.0/language-specs/

    The file “txt2tags-gedit.lang” must by put inside of thie folder. It is necessary super user rights.

    Close gedit and reopen with it any *.t2t file. The syntax highlighting is nice. Good job!

  4. Pingback: New syntax files for JOE, le and ne editors « Txt2tags News

  5. did put it here, restarted gedit, but not working,
    new version seems to break it?
    /usr/share/gtksourceview-2.0/language-specs

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s