Topas Syntax
Syntax highlighting for TOPAS in Sublime Text
Details
Installs
- Total 344
- Win 118
- Mac 96
- Linux 130
Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 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 | 1 | 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 | 1 |
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 | 0 | 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.