This is a small git repository containing vim configuration files which will help to parse TOPAS parameter file syntax.
This plugin will provide some syntax highlighting, including highlighting of some common errors.
This plugin was written my Murdock Grewar in 2021. The color scheme is based on David Hall's topas-pygments repository.
Instructions for use:
- For syntax parsing with your default/chosen colour scheme, copy the contents of
syntaxinto~/.vim/syntax/. You can apply this syntax to an open file invimwith:set syntax=topas. You may have to use:syntax onfirst. - For a colorscheme called
topas, copy the contents ofcolorsinto~/.vim/colors/. You can use this colourscheme inside vim by running:colorscheme topas. - For automatic application of the
topassyntax to TOPAS files, copy the contents offtdetectinto~/.vim/ftdetect/. Files with the extension*.topaswill now be opened byvimwith thetopassyntax applied automatically. - For automatica application of the
topascolor theme to TOPAS files, copy the contents offtplugininto~/.vim/ftplugin/. You will then also have to add the linefiletype plugin onto yourvimconfiguration file at~/.vimrcin order for this to take effect.
You should now be able to open *.topas files in vim and enjoy automatic syntax highlighting as per these screenshots (slightly outdated):
