Let Sublime Text know better of FastA format.
FastA
format is a commonly used text-based format for representing biological sequence data, such as DNA or protein sequences. It consists of a single-line sequence header, which begins with a >
character, followed by one or more lines of sequence data. The header typically contains information about the sequence, such as its name or source organism. FastA format is widely supported by bioinformatics software and databases and is often used for tasks such as sequence alignment and database searching.
- Press
Ctrl+Shift+P
(Windows) orCmd+Shift+P
(OS X) to open the Command Palette - Type
Install Package Control
and press Enter to select it. - Wait for a while for the installation to finish
- Press
Ctrl+Shift+P
(Windows) orCmd+Shift+P
(OS X) to open the Command Palette - Type
Install Package
and selectPackage Control: Install Package
from the palette - Type
fasta
to find this package and click it to install
Tested on Sublime Text 4
Download the fasta.sublime-syntax
and put it in the Sublime Text user folder:
- Windows:
%APPDATA%\Sublime Text\Packages\User
- Mac:
~/Library/Application Support/Sublime Text/Packages/User
- Linux:
~/.config/sublime-text/Packages/User
The application should automatically recognize files in extensions fa
, fasta
, faa
, fna
, ffn
, or fas
.
If the syntax is not applied automatically accidentally, you can specify the syntax by either:
- click menu -> View -> Syntax -> FastA
- click 'plain text' at the bottom right -> FastA
This is a Syntax
which helps Sublime Text understand the composition of the FastA format, not a Theme
or a Color Scheme
. The color of the keywords is specified according to the Color Scheme
which you can select by menu -> Preferences -> Select Color Scheme...
A few examples of this syntax working with several built-in color schemes: