/dbml-mode

Major mode for DBML (dbdiagram.io)

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

MELPA MELPA Stable Buy me a coffee Liberapay PayPal

dbml-mode

This major mode attempts to port all of the syntax highlighting from https://dbdiagram.io and build upon it by providing helpers such as duplicate checking and rendering SVGs directly in Emacs.

sample

How to

Install it from Melpa or clone and install manually, then simply M-x dbml-mode.

Enable for file extensions

It might be useful to auto-enable the mode for certain files or patterns. One of such methods is updating auto-mode-alist:

(add-to-list 'auto-mode-alist
             '("\\.dbml\\'" . dbml-mode))

For every file with .dbml extension.