ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Linked​Data

by blake-regalia ST3

Complete high-res syntaxes for SPARQL 1.1, Turtle, TriG, N-Triples, N-Quads, Notation3 and ShExC

Details

Installs

  • Total 69
  • Win 20
  • OS X 32
  • Linux 17
Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4
Windows 1 0 0 0 0 0 0 1 1 0 0 0 0 0 2 0 1 0 0 0 0 0 3 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
OS X 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
Linux 0 1 0 0 0 0 0 0 1 1 0 0 0 1 0 0 3 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Syntax highlighting definitions for various Linked Data languages

Each syntax highlighter reflects a complete implementation of the grammar specification for its language. This provides highly-specific scoping and instant feedback on malformed code (i.e., invalid or misplaced tokens are easily identified).

Install:

Available on Package Control as LinkedData .

Activating the Light Color Scheme

The package ships with two color schemes which are designed specifically for the detailed scopes that the syntax highlighting definitions create. By default, the package uses the Macaron Dark color scheme. If you prefer to use Macaron Light, you'll need to create a settings file to override the syntaxes:

Create a new file in your Sublime Text 3 Packages directory: Packages/User/LinkedData.sublime-settings

// These settings will override both User and Default settings for the specific LinkedData syntaxes
{
    "color_scheme": "Packages/LinkedData/macaron-light.sublime-color-scheme"
}

Then, create a symbolic link to this file for each syntax (shown here are terminal commands to be run for *nix systems). The files should be in the User subdirectory in the ST3 packages directory):

ln -s LinkedData.sublime-settings n-triples.sublime-settings
ln -s LinkedData.sublime-settings n-quads.sublime-settings
ln -s LinkedData.sublime-settings turtle.sublime-settings
ln -s LinkedData.sublime-settings trig.sublime-settings
ln -s LinkedData.sublime-settings notation3.sublime-settings
ln -s LinkedData.sublime-settings sparql.sublime-settings

This will override the default color scheme when any of these syntaxes are loaded in the current view.

Features:

  • Highly-specific scoping allows for very detailed color schemes.
  • Malformed syntax detection. Expected token(s) are inspectable via scope name.
  • Auto-completion and validation for prefix mappings registered on prefix.cc.

Currently supported languages:

  • SPARQL 1.1
  • Turtle (TTL)
  • TriG
  • N-Triples (NT)
  • N-Quads (NQ)
  • Notation3 (N3)
  • ShExC

Currently supported platforms:

  • Sublime Text 3

Currently supported color themes:

  • Macaron Dark
  • Macaron Light (in beta)

Planned langauage support:

  • OWL Manchester
  • OWL Functional-Style
  • RDFa
  • JSON-LD

Planned platform support:

  • Atom
  • CodeMirror
  • Emacs
  • minted (LaTeX)
  • ~Ace~

Planned color theme support

  • Suggestions?

Previews:

Macaron Dark

Turtle:

Turtle Preview

SPARQL:

SPARQL Preview

Macaron Light

Turtle:

Turtle Preview

SPARQL:

SPARQL Preview