Skip to content

Instantly share code, notes, and snippets.

@lshifr
Created November 17, 2012 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lshifr/4097351 to your computer and use it in GitHub Desktop.
Save lshifr/4097351 to your computer and use it in GitHub Desktop.
Correcting the prevoius commit using the API

##CodeFormatter.m

###Formatting Mathematica code

CodeFormatter.m is a pretty-printer / code formatter for code written in the Mathematica language, which is also written in Mathematica. It works on the box level at the moment. The direct support for strings has not yet been implemented, but one can always convert code to boxes and use it then. Only a few boxes are currently supported, but those cover a vast majority of cases encountered for normal (not typeset) Mathematica code. The formatter is extensible and the support for more boxes will be added in the future.

This is a new contents for file1.txt
This is a new file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment