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 and Notation3

Details

Installs

  • Total 43
  • Win 7
  • OS X 26
  • Linux 10
May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6
Windows 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 3 4 6 0 1 0 0 0 0 0 3 3 3 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 2 0 0 0 0 1 1 1 1 0 2 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)

Currently supported platforms:

  • Sublime Text 3

Currently supported color themes:

  • Macaron Dark
  • Macaron Light (in beta)

Planned langauage support:

  • ShExC
  • 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