+3

emacs like font lock feature

Emanuele D'Osualdo 5 years ago 0
It would be great if ST could support the font-lock feature of Emacs.

This feature enables you to define substitutions from string literals to unicode symbols for better readability.
For example in LaTeX you could have the macros \alpha, \beta... rendered in the buffer as α β etc, or in Haskell you could have (\x -> x+1) rendered as (λx → x+1).
See this screenshot for an example in Haskell.
The file itself would *not* contain the unicode chars but the regular ASCII representation; the symbols are only displayed in the view and revert back to normal when editing the line.

I believe this is way beyond the scope of a plugin and needs to be implemented in ST itself.


Anyone wishing this was added to ST?