This repository contains files that tell the Sublime Text 3 code editor how to color LAMMPS input file so that they are easier to read.
Put these files in your User folder in Sublime Text 3 for file highlighting of lammps input files. The User folder can be accesed by going to menu: Preferences > Browse Packages. Usually the bottom folder will be User.
All files with extension *.in or *.lammps should now show syntax highlighting.
You may have to close sublime and open it again for the changes to take effect.
In addition to syntax highlighting, we have created a few sublime snippets to make our lives a little easier:
- To quickly add a variable. To use it type var followed by Tab to autocomplete the variable declaration. Keep clicking tab and it will cycle through all relevant fields.
- To quickly add a fix. To use it type fix followed by Tab to autocomplete. Keep clicking tab and it will cycle through all relevant fields.
More snippets can easily be added by copying one of the .sublime-snippet files and then modifying it. Go here for more information on snippets.
This repository is based off of ipcamit/lammps-st3
In ipcamit/lammps-st3 they use the old .tmLanguage file format. This repository uses the new .sublime-syntax file format.