Skip to content

nayrangnu/language-sage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sage math language support in Atom

Adds syntax highlighting and snippets to Sage math files in Atom. Currently limited to basic python syntax.

Originally forked from the atom.io Python language bundle, which was converted from the Python TextMate bundle.

To fix in,is,not,and,or and parameters for functions being highlighted, add the following to your personal stylesheet (which can be found at Packages -> Settings View -> Manage Themes -> your stylesheet):

// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow {
  // Add Your Styles Here
  .keyword.operator.logical.sage { color: #c678dd; }
  .variable.parameter { color: hsl( 29, 54%, 61%); }
}

Customize those two colors according to your preferred theme, the given two colors are the colors for the one-dark-syntax theme by atom.

Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.

About

Sage Math package for Atom

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 100.0%