Skip to content

ernstki/LDIF-Syntax

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LDIF-Syntax

LDAP Data Interchange Format syntax highlighter and snippets for Sublime Text 3.

Syntax highlighting and checking is done in conformance with the definitions of RFC 2849. The syntax highlighter distinguishes between plain text and base64-encoded attribute values. Within both types, invalid characters are automatically highlighted.

Snippets

This package contains snippets for the LDAP modify operations defined by RFC 2849. It also attempts to detect erroneous modify definitions and highlights them as well.

Use with bat

See the "Adding new syntaxes / language definitions" section of the project's README for more details, but basically:

mkdir -p "$(bat --config-dir)/syntaxes"
cd "$(bat --config-dir)/syntaxes"
git clone https://github.com/ernstki/LDIF-Syntax.git
bat cache --build
bat --list-languages | grep -i ldif

Converting syntax formats

The .tmLanguage file was converted into the .sublime-syntax format that appears in this fork using sublime_syntax_convertor from aziz/SublimeSyntaxConvertor, like so:

gem install --user sublime_syntax_convertor
cd "$(bat --config-dir)/syntaxes"
cd LDIF-Syntax
sublime_syntax_convertor .

Apart from that, no other changes were made to the .sublime-syntax file, nor was any attempt made to verify the fidelity of the conversion within Sublime Text.

I just wanted basic syntax highlighting for LDIF with bat, and am not a Sublime Text user.

References

About

LDIF syntax support for https://github.com/sharkdp/bat - see "Use with bat" in the README below

Topics

Resources

License

Stars

Watchers

Forks