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

Pymol Language

by bbarad ST2/ST3

Syntax rules for .pml files in sublime text.

Details

Installs

  • Total 170
  • Win 72
  • OS X 70
  • Linux 28
Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4
Windows 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 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 1 0 0 0 0 0 0 1 2 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.