kasteph / CoNLL-U.tmLanguage

Syntax highlighting for CoNLL-U (.conllu, .conll) files on Sublime Text.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CoNLL-U Syntax Highlighting for Sublime Text

The CoNLL-U format is defined on the Universal Dependencies website. Scope naming has been changed from what was originally proposed in order to create better syntax highlighting for Sublime Text. The regular expression has also been changed to match for whitespaces (\s) instead of tabs (\t). An Atom extension exists for CoNLL-U highlighting by @Evpok.

Highlighting demo on Sublime Text

Installation

Adapted from @alexlouden's README on Terraform.tmLanguage

Using Package Control

  1. Having Package Control installed
  2. Open the palette by pressing Ctrl+Shift+P (Win, Linux) or Cmd+Shift+P (OS X).
  3. Select "Package Control: Install package"
  4. Select "CoNLL-U"

Manually

  1. Open the Sublime Text Packages folder
    • OS X: ~/Library/Application Support/Sublime Text 3/Packages/
    • Windows: %APPDATA%/Sublime Text 3/Packages/
    • Linux (Ubuntu/Debian): ~/.config/sublime-text-3/Packages/
  2. Clone this repo

Acknowledgements

Thanks to Bruno Cuconato for the grammar.

About

Syntax highlighting for CoNLL-U (.conllu, .conll) files on Sublime Text.

License:Apache License 2.0