Difference between revisions of "Script Highlighting"

From PyMOLWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Syntax Highlighting for writing Pymol Scripts ==
 
== Syntax Highlighting for writing Pymol Scripts ==
When editing pymol scripts (the kind that look like pymol syntax rather than python), it can be useful to highlight syntax features. This can make it more clear when both reading and writing scripts. There are script highlighters available for a number of text editors.
+
When editing pymol scripts, it can be useful to highlight syntax features. This can make it more clear when both reading and writing scripts. Highlighting of python scripts is available by default on most text editors, but support for highlighting of pymol scripts requires third-party extensions.. There are pymol script highlighters available for a number of text editors.
  
 
=== Sublime Text ===
 
=== Sublime Text ===

Revision as of 20:10, 3 September 2014

Syntax Highlighting for writing Pymol Scripts

When editing pymol scripts, it can be useful to highlight syntax features. This can make it more clear when both reading and writing scripts. Highlighting of python scripts is available by default on most text editors, but support for highlighting of pymol scripts requires third-party extensions.. There are pymol script highlighters available for a number of text editors.

Sublime Text

Highlighting in Sublime Text

Syntax highlighting for Sublime Text can be installed via Package Control and will update automatically. Alternatively, the most recent edits (pre-release) and the source file can be downloaded from Github. This package is compatible with both Sublime Text 2 and Sublime Text 3.

The syntax file should work with other editors, such as Atom.io and TextMate, with minimal changes.

Vim

There is also a different syntax highlighting package available for vim.