Skip to content

xtotdam/lammps-st3

 
 

Repository files navigation

LAMMPS Input File Syntax Highlighting

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.

Snippets

In addition to syntax highlighting, we have created a few sublime snippets to make our lives a little easier:

  1. 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.
  2. 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.

Source

This repository is based off of BYU-BMR/lammps-st3

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.

About

Sublime Text 3 Syntax Highlighting for LAMMPS Input Files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published