Topas Syntax
Syntax highlighting for TOPAS in Sublime Text
Details
Installs
- Total 386
- Win 138
- Mac 106
- Linux 142
May 4 | May 3 | May 2 | May 1 | Apr 30 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 |
Mac | 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 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
topas-syntax
Syntax highlighting for TOPAS parameter files in Sublime Text.
Installation
Installing packages for Sublime Text is easiest through the Package Control plugin, and this package is no different.
Once you have Package Control, follow these instructions:
* open the Command Palette (cmd+shift+p
on Mac, ctrl+shift+p
on Linux/Windows)
* select Package Control: Install Package
* search for Topas Syntax
Usage
Since TOPAS parameter files use the ubiquitous .txt
file extension, it is not enabled by default.
To apply the syntax highlighting to an opened file, select View > Syntax > Topas
.
As this could become laborious when managing many parameter files, I recommend saving your directory tree as a Sublime Text project.
I personally use the excellent Project Manager package for managing my projects, though this isn't necessary.
Then you can use the Project Specific Syntax Settings package to tell Sublime Text to use the TOPAS syntax highlighting for your project, by choosing Edit Project
from the Command Palette:
{
...
"syntax_override": {
"\\.txt$": ["Topas Syntax", "Topas"]
}
}
Other text editors
It might be possible to import the Topas.tmLanguage
grammar file into other editors such as TextMate.
Please let me know if you install it on another editor, and I can update the README.
This syntax highlighting logic has also been adapted for other text editors:
Note about colors
The actual colors used in the syntax highlighting is determined by your theme, so you may see a different color scheme to the image above. I am using the Monokai theme.