language-spike2

Spike2 script language support for Atom

kouichi-c-nakamura

233

1

0.5.0

MIT

GitHub

Spike2 script language support for Atom

Spike2 is a recording and analysis software for electrophysiology by Cambridge Electric Design (CED).

This package allows you to use syntax highlighting for Spike2 script language in Atom.

GUI installation

  1. Atom > Preferences… > Install pane > typespike2 in the window and search for Packages
  2. Click the blue Install button.

Command line installation

On Termina,l type apm install language-spike2

Manual installation

  1. Download the folder and place it under C:\Users\<username>\.atom\packages\ (Windows) or /Users/<usename>/.atom/Packages/ (macOS)
  2. (Re)launch Atom.

Syntax highlighting in Spike2 style

  1. Open the styles.less file from menu File > Stylesheet... (Windows), or Atom > Stylesheet… (macOS)
  2. Add the following Less code to the file styles.less .The Atom editor should look like Spike2 script editor by this.
// Spike2
atom-text-editor[data-grammar="source spike2"].editor {
  font-family: "Consolas"; // custoum font-setting
  
  .syntax--source.syntax--spike2 {
    color: black;
    
    .syntax--comment {
      color: #008000;
      font-style: normal;
    }
    .syntax--string {
      color: red;
    }
    .syntax--keyword, .syntax--keyword, .syntax--storage.syntax--type.syntax--function {
      color: blue;
      font-weight: normal;
    }
    .syntax--support.syntax--function {
      color: #000080;
    }
    .syntax--constant.syntax--numeric {
      color: red;
    }
  }
}

Screen shot (macOS)

screen shot

Change log

0.4.2

0.4.1

0.3.1

0.3.0

0.4.0

0.5.0

Contributors