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 482
  • Win 244
  • Mac 162
  • Linux 76
Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9
Windows 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 0 0 0 0
Mac 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 0 0 0 0 0 0 0 0 0 0 0
Linux 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 0 0 0 0 0 0 0 0 0 0 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.