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.
spike2
in the window and search for PackagesOn Termina,l type apm install language-spike2
C:\Users\<username>\.atom\packages\
(Windows) or /Users/<usename>/.atom/Packages/
(macOS)styles.less
file from menu File > Stylesheet... (Windows), or Atom > Stylesheet… (macOS)styles.less
.The Atom editor should look like Spike2 script editor by this.// Spike2atom-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;}}}
Print$()
is now properly recognized.func
and proc
are now labeled as class syntax--storage.syntax--type.syntax--function.syntax--func.syntax--spike2'
and syntax--storage.syntax--type.syntax--function.syntax--proc.syntax--spike2'
, respectively. These are following the conventions. Need to amend the stylesheet styles.less
accordingly.$
character for builtin functions like Print$()
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.