ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Pymol Language

by bbarad ALL

Syntax rules for .pml files in sublime text.

Details

Installs

  • Total 480
  • Win 242
  • Mac 162
  • Linux 76
Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
Mac 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
01234Apr 29Apr 26Apr 23Apr 20Apr 17Apr 14Apr 11Apr 8Apr 5Apr 2Mar 30Mar 27Mar 24Mar 21Mar 18Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 1 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 0 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 0Apr 21 Linux: 0 Mac: 0 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 1 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 0Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 1Apr 10 Linux: 0 Mac: 0 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 0Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 0Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 0Apr 1 Linux: 0 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 0 Windows: 0Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 1 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 0 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 0Apr 21 Linux: 0 Mac: 0 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 1 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 0Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 1Apr 10 Linux: 0 Mac: 0 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 0Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 0Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 0Apr 1 Linux: 0 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 0 Windows: 0Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 1 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 0 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 0Apr 21 Linux: 0 Mac: 0 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 1 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 0Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 1Apr 10 Linux: 0 Mac: 0 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 0Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 0Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 0Apr 1 Linux: 0 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 0 Windows: 0Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0

Readme

Source
raw.​githubusercontent.​com

Pymol Syntax

Syntax rules for pymol scripts in sublime text and other textmate-style text editors. I have only tested in Sublime Text but it should work with any color scheme in any editor that uses .tmlanguage files. Automatically detects the .pml extension and applies itself.

This works both with the more standard command target, options syntax and the cmd.command('target', options) syntax.

Preview:

preview

This preview is using the spacegray theme and color scheme.

Use:

Package Control:

Install the package named Pymol Language and it should work automatically on .pml files.

Manual:

Copy the pymol.tmlanguage and Comments.tmPreferences files into the user packages folder. On Mac, for sublime text 3, this folder is ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/. After this, syntax highlighting should immediately be applied to all .pml files.

Contributing:

I am using AAAPackageDev to convert the YAML file into a plist file which is readable by sublime text. Make your changes in that file, then submit changes as a pull request.

Citations:

I took inspiration from Michal Gajda's syntax definition for pymol. If you are looking for a syntax definition for vim, I recommend it.