An Emacs mode for writing files in the Pollen Markup language. For now, it only provides simple syntax highlighting via font-lock. Feel free to add more features and submit a pull request.
pollen-mode to your emacs lisp directory.
git clone https://github.com/basus/pollen-mode.git ~/.emacs.d/lisp/pollen-mode
Then add the following to
(add-to-list 'load-path (expand-file-name "lisp/pollen-mode" user-emacs-directory)) (autoload 'pollen-mode "pollen" "A major mode for the pollen preprocessor." t)
pollen-mode should activate when you open a file with
Currently the mode provides the following syntax highlighting using Emacs' predefined font-lock faces:
- Tag names beginning with ◊ (lozenge) are highlighted as function names.
- Attribute keys starting with a single quote or backtick are highlighted as constants.
- Quote-delimited strings in attributes (or in the Racket-mode argument to tags) are highlighted as strings.
#lang languageline is highlighted as a preprocessor directive.