<commit_before># Script [![Build Status](http://img.shields.io/travis/rgbkrk/atom-script.svg?style=flat)](https://travis-ci.org/rgbkrk/atom-script)
**Run code in Atom!**

Run scripts based on file name, a selection of code, or by line number.

![](https://cloud.githubusercontent.com/assets/1694055/3226201/c458acbc-f067-11e3-84a0-da27fe334f5e.gif)

Currently supported grammars are:

  * AppleScript
  * Bash
  * Behat Feature
  * C <sup>[*](#asterisk)</sup><sup>[‡](#double-dagger)</sup>
  * C++ <sup>[*](#asterisk)</sup><sup>[‡](#double-dagger)</sup>
  * C# Script <sup>[*](#asterisk)</sup>
  * Coffeescript
  * CoffeeScript (Literate) <sup>[^](#caret)</sup>
  * Cucumber (Gherkin) <sup>[*](#asterisk)</sup>
  * D <sup>[*](#asterisk)</sup>
  * DOT (Graphviz)
  * Elixir
  * Erlang <sup>[†](#dagger)</sup>
  * F# <sup>[*](#asterisk)</sup>
  * Forth (via GForth)
  * Go <sup>[*](#asterisk)</sup>
  * Groovy
  * Haskell
  * Java
  * Javascript
  * Julia
  * Kotlin
  * LilyPond
  * Lisp (via SBCL) <sup>[⍵](#omega)</sup>
  * Literate Haskell <sup>[*](#asterisk)</sup>
  * LiveScript
  * Lua
  * Makefile
  * MoonScript
  * newLISP
  * Objective-C <sup>[*](#asterisk)</sup><sup>[‡](#double-dagger)</sup>
  * Objective-C++ <sup>[*](#asterisk)</sup><sup>[‡](#double-dagger)</sup>
  * OCaml <sup>[*](#asterisk)</sup>
  * Perl
  * PHP
  * Python
  * RSpec
  * Racket
  * [RANT](https://github.com/TheBerkin/Rant)
  * Ruby
  * Ruby on Rails
  * Rust
  * Sass/SCSS <sup>[*](#asterisk)</sup>
  * Scala
  * Swift

**NOTE**: Some grammars may require you to install [a custom language package](https://atom.io/search?utf8=✓&q=language).

You only have to add a few lines in a PR to support another.

### Limitations

<a name="caret"></a><sup>^</sup> Running selections of code for CoffeeScript (Literate) only works when selecting just the code blocks
<commit_msg>Added Perl 6 to README.md<commit_after># Script [![Build Status](http://img.shields.io/travis/rgbkrk/atom-script.svg?style=flat)](https://travis-ci.org/rgbkrk/atom-script)
**Run code in Atom!**

Run scripts based on file name, a selection of code, or by line number.

![](https://cloud.githubusercontent.com/assets/1694055/3226201/c458acbc-f067-11e3-84a0-da27fe334f5e.gif)

Currently supported grammars are:

  * AppleScript
  * Bash
  * Behat Feature
  * C <sup>[*](#asterisk)</sup><sup>[‡](#double-dagger)</sup>
  * C++ <sup>[*](#asterisk)</sup><sup>[‡](#double-dagger)</sup>
  * C# Script <sup>[*](#asterisk)</sup>
  * Coffeescript
  * CoffeeScript (Literate) <sup>[^](#caret)</sup>
  * Cucumber (Gherkin) <sup>[*](#asterisk)</sup>
  * D <sup>[*](#asterisk)</sup>
  * DOT (Graphviz)
  * Elixir
  * Erlang <sup>[†](#dagger)</sup>
  * F# <sup>[*](#asterisk)</sup>
  * Forth (via GForth)
  * Go <sup>[*](#asterisk)</sup>
  * Groovy
  * Haskell
  * Java
  * Javascript
  * Julia
  * Kotlin
  * LilyPond
  * Lisp (via SBCL) <sup>[⍵](#omega)</sup>
  * Literate Haskell <sup>[*](#asterisk)</sup>
  * LiveScript
  * Lua
  * Makefile
  * MoonScript
  * newLISP
  * Objective-C <sup>[*](#asterisk)</sup><sup>[‡](#double-dagger)</sup>
  * Objective-C++ <sup>[*](#asterisk)</sup><sup>[‡](#double-dagger)</sup>
  * OCaml <sup>[*](#asterisk)</sup>
  * Perl
  * Perl 6
  * PHP
  * Python
  * RSpec
  * Racket
  * [RANT](https://github.com/TheBerkin/Rant)
  * Ruby
  * Ruby on Rails
  * Rust
  * Sass/SCSS <sup>[*](#asterisk)</sup>
  * Scala
  * Swift

**NOTE**: Some grammars may require you to install [a custom language package](https://atom.io/search?utf8=✓&q=language).

You only have to add a few lines in a PR to support another.

### Limitations

<a name="caret"></a><sup>^</sup> Running selections of code for CoffeeScript (Literate) only works when selecting just the code blocks

{'fraction_non_alphanumeric': 0.20852318413294024, 'fraction_numerical': 0.018225676762262128, 'mean_word_length': 4.161825726141079, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4240179', 'n_tokens_mistral': 1573, 'n_tokens_neox': 1410, 'n_words': 292}