Skip to content

.sublime-syntax format for use with 'bat' #1

@ernstki

Description

@ernstki

Hello, hope you're well.

I just wanted to leave a breadcrumb here to note that I have made a fork which includes a .sublime-syntax-format version of the basic LDIF syntax highlighting. I am not a Sublime Text user, but I assume this is a new syntax format which Sublime understands in addition to the TextMate one.

As I understand it, bat only understands the former (the newer format).

The conversion was done using aziz/SublimeSyntaxConvertor, and I assume that someone wanting to highlight LDIF with bat can just copy that one file, ldif.sublime-syntax, into $(bat --config-dir)/syntaxes and then run bat cache --build. There are more details in the README for my fork.

I mention it here

  1. because this ST syntax bundle shows up on Package Control as the only search result for "ldif"
  2. because the instructions in the the the "Adding new syntaxes / language definitions" section of bat's README won't work for adding LDIF syntax highlighting using the contents of this repository alone, because, as mentioned, only the .sublime-syntax format is (currently) understood by bat
  3. in the hopes it can save a future traveler a few minutes figuring all that out on their own ;)

Cheers.

—Kevin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions