pfist / language-examples

Language examples for all Atom core languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Language Examples

These are examples of all languages that come bundled with Atom. Use them to test syntax highlighting when creating a theme.

How to use?

  1. Open your theme in Atom.
  2. Clone or download this repo.
  3. Open that folder in "Dev Mode" (View > Developer > Open In Dev Mode...). You'll see a red icon bottom/right in the status bar. Opening in Dev Mode will automatically reload the styles when you save.
  4. Now, click through languages files to make sure all languages are supported.

screenshot

Left: Make changes to your theme. Right: See the changes applied to all Atom core languages.

Languages

Here a list of all the Atom core languages:

  • c
  • clojure
  • coffee-script
  • csharp
  • css
  • gfm
  • git
  • go
  • html
  • hyperlink
  • java
  • javascript
  • json
  • less
  • make
  • mustache
  • objective-c
  • perl
  • php
  • property-list
  • python
  • ruby
  • ruby-on-rails
  • sass
  • shellscript
  • sql
  • text
  • todo
  • toml
  • xml
  • yaml

Contributing

Contributions are greatly appreciated. Please fork this repository and open a pull request to improve the examples.

Each language file comes with two sections:

  1. A simple example of the language. Its purpose is to show a typical use case and get a quick overall impression.

  2. If needed more examples or tests can be added. Or maybe show a few edge cases.

About

Language examples for all Atom core languages.

License:MIT License


Languages

Language:CSS 22.9%Language:HTML 15.5%Language:Python 10.4%Language:JavaScript 8.5%Language:C# 6.0%Language:CoffeeScript 5.4%Language:Go 5.0%Language:C 4.9%Language:Java 4.5%Language:Ruby 3.3%Language:TypeScript 3.0%Language:Shell 2.8%Language:Objective-C 2.1%Language:Perl 2.0%Language:Makefile 1.9%Language:PHP 1.8%