ababaian / bioSyntax-archive

Syntax highlighting for computational biology
http://bioSyntax.org
GNU General Public License v3.0
16 stars 2 forks source link

Porting to Sublime #6

Closed ababaian closed 6 years ago

ababaian commented 6 years ago

Initially we're going to be focusing on SublimeText / YAML for all the formats; we'll port it from there.

Starting an Example File for your bioformat

In Sublime > Tools > Developer > New Syntax

Installing a syntax for

Copy the '.sublime-syntax' file to

Linux: ~/.config/sublime-text-3/Packages/User Windows: %APPDATA%/Roaming/Sublime Text 3/Packages/ Mac: ~/Library/Application Support/Sublime Text 3/Packages/User/

NOTE: The .sublime-syntax file cannot contain any Tabs; everything is space-indented

Defining / Changing the color scheme

Overview

We'll be using 'Monoka.tmTheme' as the base theme for now.

Your bioformat syntax file should use already existing definitions in the theme file for the 'scope'

The default theme file is available here or it's zipped under 'sublime_text_3/Packages/Color Scheme - Default.sublime-package'

ababaian commented 6 years ago
ababaian commented 6 years ago

One feature we should implement for sublime install is to automatically change to the bioSyntax theme only when a bioSyntax file format is being used: https://hiltmon.com/blog/2012/11/07/multiple-themes-in-sublime-text-2/