3 ms·
In other words, Emacs has its own markup language? how does emacs know that a specific bit of text is a button, for example?
by axilmar 6y ago
In other words, Emacs has its own markup language? how does emacs know that a specific bit of text is a button, for example?
- dmortin 6y agoCharacters can have various properties set. These are either built in or you can define your own properties too.
- juxtapose 6y agoYes, Emacs supports a limited form of "rich text". See text-mode. It's supported by text properties [1] and overlays [2]. Character properties are special attributes attached to a single character, while overlays can attach attributes to a "region" and override old text properties (like div in HTML). In Emacs, > A button is essentially a set of text or overlay properties, attached to a stretch of text in a buffer. [3] The Emacs display engine is sorta like an HTML render engine. [1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Text-Properties.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Te... [2] https://www.gnu.org/software/emacs/manual/html_node/elisp/Overlays.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Ov... [3] https://www.gnu.org/software/emacs/manual/html_node/elisp/Buttons.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Bu...