language-ansible

Ansible syntax package

haad

106,103

77

0.2.2

MIT

GitHub

Ansible Syntax Highlighting Package

This extension add 2 grammars to enable syntax highlighting for Ansible in the Atom Editor.

Adding ansible yaml file detection

For now both methods doesn't support syntax highlighting based on path see (host_vars/group_vars) below.

Using file-types package

After installing file-types package user can define custom syntax associations for proper matching.

config.cson

"*":
  "file-types":
    ".*.yml$": "source.ansible"
    ".*/group_vars/.*": "source.ansible"
    ".*/host_vars/.*": "source.ansible"

Atom Custom File Types

Manually defining custom file types.

"*":
  core:
    customFileTypes:
      "source.ansible": [
        "yml"
      ]