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.
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 ldifThe .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.
- https://forum.sublimetext.com/t/trying-to-convert-tmlanguage-syntax-to-sublime-syntax/53427
- https://forum.sublimetext.com/t/tmlanguage-to-sublime-syntax-convertor/17370
- this thread is where I found the eventual solution, using
sublime_syntax_convertor
- this thread is where I found the eventual solution, using