View on GitHub

GEARS | 齿轮组

Geant4 Example Application with Rich features and Small footprints

Download this project as a .zip file Download this project as a tar.gz file

Syntax highlighting for .tg files

Emacs

tg-mode.el defines a major mode for editing .tg files in Emacs. You can install it manually in two steps. First,

$ mkdir -p ~/.emacs.d/lisp/
$ cp tg-mode.el ~/.emacs.d/lisp

Secondly, add the following two lines to your ~/.emacs:

(add-to-list 'load-path "~/.emacs.d/lisp/")
(load "tg-mode")

Vim

tg.vim defines syntax highlighting rules for displaying .tg files in Vim. You can install it in two steps as well. First,

$ mkdir -p ~/.vim/after/syntax/
$ cp tg.vim ~/.vim/after/syntax/

Secondly, add the following line to your ~/.vimrc:

au BufNewFile,BufRead *.tg set filetype=tg

Micro

tg.yaml defines syntax highlighting rules for displaying .tg files in Micro, a modern replacement of the nano editor. To install it, you simply do

$ mkdir -p ~/.config/micro/syntax/
$ cp tg.yaml ~/.config/micro/syntax/

Sublime Text

tg.sublime-syntax defines syntax highlighting rules for displaying .tg files in Sublime Text Editor, which is great in indexing and multiple selection. To install it, simply do

$ cp tg.sublime-syntax ~/.config/sublime-text-3/Packages/User/