Syntax coloring in text editors

Instructions are provided to add the coloration of the syntax in the text editors for the trip files.

BBEdit 8.0+

Copy the file tripcolorbbedit.plist to the "/Library/Application Support/BBEdit/Language Modules/" or in your user "~/Library/Application Support/BBEdit/Language Modules/" directory.
Now when you save trip files with the extension ".t", you will have syntax coloring.

ConTEXT 0.97.6+

Copy the file tripcolorcontext.chl to the directory "ConTEXTDir\Highlighters\".
"ConTEXTDir" is the directory of ConTEXT Editor.
Now when you save trip files with the extension ".t", you will have syntax coloring.

Crimson Editor 3.70+

Copy the file extension.t to the directory "CrimsonEditorDir\link\".
Copy the files tripcolorcrimson.spc and tripcolorcrimson.key to the directory "CrimsonEditorDir\spec\".
"CrimsonEditorDir" is the directory of Crimson Editor.
Now when you save trip files with the extension ".t", you will have syntax coloring.

Emacs

Add the content of the files emacs.pref to your .emacs located in your home directory.
Edit the path to the files trip-mode.el and trip-mode.elc in the .emacs file.
Now when you save trip files with the extension ".t", you will have syntax coloring.

Geany

Copy the file filetypes.TRIP.conf in the user "~/.config/geany/filedefs/" directory.

Add the following line to the section "[Extensions]" of the your user file "~/.config/geany/filetype_extensions.conf"
TRIP=*.t;

Now when you save trip files with the extension ".t", you will have syntax coloring.

Gedit 2.28+

Copy the file tripcolorgedit.lang to "$(GNOMEDIR)/share/gtksourceview-2.0/language-specs/" or in your user "~/.gnome2/gtksourceview-2.0/language-specs/" directory.

Add the content of the tripfreedesktop.txt to the file "/usr/share/mime/packages/freedesktop.org.xml"

Run the command "update-mime-database /usr/share/mime"

Gedit 2.6+

Copy the file tripcolorgedit.lang to "$(GNOMEDIR)/share/gtksourceview-1.0/language-specs/" or in your user "~/.gnome2/gtksourceview-1.0/language-specs/" directory.

Add the content of the tripfreedesktop.txt to the file "/usr/share/mime/packages/freedesktop.org.xml"

Run the command "update-mime-database /usr/share/mime"

Kate, Kwrite (KDE 3.0 or later)

Copy the file tripcolorkate.xml to "$(KDEDIR)/share/apps/katepart/syntax" or "$(KDEDIR)/share/kde4/apps/katepart/syntax/" or in your user "~/.kde/share/apps/katepart/syntax" directory.
Now when you save trip files with the extension ".t", you will have syntax coloring.

Nedit

Run nedit with the following command : nedit -import colornedit.res.
Execute the menu command "Save Defaults..." in the menu "Preferences".
Now when you save trip files with the extension ".t", you will have syntax coloring.

PSPad

Copy the file tripcolorpspad.ini to to the directory "PsPADDir\Syntax\".
"PsPADDir" is the directory of PSPad Editor.
Execute the PSPad application : In the menu, select Settings -> Highlighter Settings. Select a free "" item. Under "User Highlighters", select tripcolorpspad and hit "OK".
Now when you save trip files with the extension ".t", you will have syntax coloring.

TextWrangler 2.0+

Copy the file tripcolorbbedit.plist to the "/Library/Application Support/TextWrangler/Language Modules/" or in your user "~/Library/Application Support/TextWrangler/Language Modules/" directory.
Now when you save trip files with the extension ".t", you will have syntax coloring.

Vim

Add the content of the files vimrc.pref to your .vimrc located in your home directory.
Create the directory ./.vim/syntax in your home directory if it doesn't exist. Copy the file trip.vim to this directory ./.vim/syntax/. Edit the path to the files gnuplot.vim in the ./.vim/syntax/trip.vim file.
Now when you save trip files with the extension ".t", you will have syntax coloring.

Last update Wednesday 24 January 2018